Skip to content

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

Fix category delete modal cancel button

Krzysztof Bialoglowicz45f1d1f792a2
diff --git a/saleor/static/dashboard-next/categories/views/CategoryDetails.tsx b/saleor/static/dashboard-next/categories/views/CategoryDetails.tsx
index 22e01fd2a0..a79d9bbb4c 100644
--- a/saleor/static/dashboard-next/categories/views/CategoryDetails.tsx
+++ b/saleor/static/dashboard-next/categories/views/CategoryDetails.tsx
@@ -313,7 +313,7 @@ export const CategoryDetails: React.StatelessComponent<
confirmButtonState={
removeDialogTransitionState
}
- onClose={() => closeModal}
+ onClose={closeModal}
onConfirm={() =>
deleteCategory({ variables: { id } })
}