From 8e3492d560fbf4dd8f483b044c8878896b76baa0 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Tue, 28 Nov 2023 22:14:54 +0100 Subject: [PATCH] Fix TypeError on empty orders --- vue/src/components/MarketOrders.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue/src/components/MarketOrders.vue b/vue/src/components/MarketOrders.vue index 5b33714..0988e73 100644 --- a/vue/src/components/MarketOrders.vue +++ b/vue/src/components/MarketOrders.vue @@ -39,7 +39,7 @@ const url = `/api/market/${marketId}/orders` await fetch(url) .then(r => r.json()) .then(body => { - orders.value = body.map(o => { + orders.value = body?.map(o => { // remove market column delete o.MarketId return o