Skip to content

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

Use null rather than just falsy value

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