From 010d7e5e319516c49d487580e92626c1f1f7deaa Mon Sep 17 00:00:00 2001 From: "m.ray" <16125548+MadalinaRaicu@users.noreply.github.com> Date: Wed, 21 Sep 2022 21:47:17 +0100 Subject: [PATCH] fix: order data provider error (#1420) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: ignore apollo errors - to be reverted after API will be fixed * fix: order data provider error Co-authored-by: Bartłomiej Głownia --- .../lib/components/order-data-provider/order-data-provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/orders/src/lib/components/order-data-provider/order-data-provider.ts b/libs/orders/src/lib/components/order-data-provider/order-data-provider.ts index 0accf076b..67645d6c6 100644 --- a/libs/orders/src/lib/components/order-data-provider/order-data-provider.ts +++ b/libs/orders/src/lib/components/order-data-provider/order-data-provider.ts @@ -153,7 +153,7 @@ export const ordersWithMarketProvider = makeDerivedDataProvider< >( [ordersProvider, marketsProvider], (partsData): OrderWithMarketEdge[] => - (partsData[0] as Parameters['0']).map((edge) => ({ + ((partsData[0] as Parameters['0']) || []).map((edge) => ({ cursor: edge.cursor, node: { ...edge.node,