Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add data check

dominik-zeglenbe1b1170895b
diff --git a/saleor/static/dashboard-next/queries.tsx b/saleor/static/dashboard-next/queries.tsx
index e5abbb8e4d..01eacaccc7 100644
--- a/saleor/static/dashboard-next/queries.tsx
+++ b/saleor/static/dashboard-next/queries.tsx
@@ -76,6 +76,7 @@ export function TypedQuery<TData, TVariables>(query: DocumentNode) {
if (
!queryData.loading &&
require &&
+ queryData.data &&
!require.reduce(
(acc, key) => acc && queryData.data[key] !== null,
true