Skip to content

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

Fix loading bar

dominik-zeglend4b9354f467a
diff --git a/saleor/static/dashboard-next/queries.tsx b/saleor/static/dashboard-next/queries.tsx
index e90fdda5ef..c8c67f2ce7 100644
--- a/saleor/static/dashboard-next/queries.tsx
+++ b/saleor/static/dashboard-next/queries.tsx
@@ -135,8 +135,8 @@ export function TypedQuery<TData, TVariables>(query: DocumentNode) {
return (
<QueryProgress
loading={queryData.loading}
- onCompleted={() => setProgressState(true)}
- onLoading={() => setProgressState(false)}
+ onCompleted={() => setProgressState(false)}
+ onLoading={() => setProgressState(true)}
>
{childrenOrNotFound}
</QueryProgress>