fix: order data provider error (#1420)

* chore: ignore apollo errors - to be reverted after API will be fixed

* fix: order data provider error

Co-authored-by: Bartłomiej Głownia <bglownia@gmail.com>
This commit is contained in:
m.ray 2022-09-21 21:47:17 +01:00 committed by GitHub
parent 9b04310ab8
commit 010d7e5e31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ export const ordersWithMarketProvider = makeDerivedDataProvider<
>(
[ordersProvider, marketsProvider],
(partsData): OrderWithMarketEdge[] =>
(partsData[0] as Parameters<typeof update>['0']).map((edge) => ({
((partsData[0] as Parameters<typeof update>['0']) || []).map((edge) => ({
cursor: edge.cursor,
node: {
...edge.node,