Fix TypeError on empty orders
This commit is contained in:
parent
8098daab8c
commit
8e3492d560
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue