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)
|
await fetch(url)
|
||||||
.then(r => r.json())
|
.then(r => r.json())
|
||||||
.then(body => {
|
.then(body => {
|
||||||
orders.value = body.map(o => {
|
orders.value = body?.map(o => {
|
||||||
// remove market column
|
// remove market column
|
||||||
delete o.MarketId
|
delete o.MarketId
|
||||||
return o
|
return o
|
||||||
|
|
Loading…
Reference in New Issue