Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Enable collection featuring
dominik-zeglenba454134e9f5
diff --git a/saleor/static/dashboard-next/collections/views/CollectionDetails.tsx b/saleor/static/dashboard-next/collections/views/CollectionDetails.tsxindex c3195422b9..e2c4f4adc5 100644--- a/saleor/static/dashboard-next/collections/views/CollectionDetails.tsx+++ b/saleor/static/dashboard-next/collections/views/CollectionDetails.tsx@@ -147,13 +147,12 @@ export const CollectionDetails: React.StatelessComponent<title: formData.seoTitle}};+ const isFeatured = data.shop.homepageCollection+ ? data.shop.homepageCollection.id ===+ data.collection.id+ : false;- if (- data.shop.homepageCollection !== null &&- formData.isFeatured !==- (data.shop.homepageCollection.id ===- data.collection.id)- ) {+ if (formData.isFeatured !== isFeatured) {updateCollectionWithHomepage.mutate({homepageId: formData.isFeatured ? id : null,id,