Skip to content

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

Fix unclosing modal

dominik-zeglenb50c7512f909
diff --git a/saleor/static/dashboard-next/collections/views/CollectionDetails.tsx b/saleor/static/dashboard-next/collections/views/CollectionDetails.tsx
index 26cb4b48e8..1ee4f2f96c 100644
--- a/saleor/static/dashboard-next/collections/views/CollectionDetails.tsx
+++ b/saleor/static/dashboard-next/collections/views/CollectionDetails.tsx
@@ -287,7 +287,7 @@ export const CollectionDetails: React.StatelessComponent<
open={params.action === "assign"}
onFetch={search}
loading={result.loading}
- onClose={() => navigate(collectionUrl(id), true, true)}
+ onClose={closeModal}
onSubmit={formData =>
assignProduct.mutate({
...paginationState,