Fix TypeError on empty orders

This commit is contained in:
ekzyis 2023-11-28 22:14:54 +01:00
parent 8098daab8c
commit 8e3492d560
1 changed files with 1 additions and 1 deletions

View File

@ -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