Skip to content

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

Set all switches to on by default

dominik-zeglen34b38e704f88
diff --git a/saleor/static/dashboard-next/attributes/components/AttributePage/AttributePage.tsx b/saleor/static/dashboard-next/attributes/components/AttributePage/AttributePage.tsx
index 688495005a..6cc875c905 100644
--- a/saleor/static/dashboard-next/attributes/components/AttributePage/AttributePage.tsx
+++ b/saleor/static/dashboard-next/attributes/components/AttributePage/AttributePage.tsx
@@ -64,23 +64,23 @@ const AttributePage: React.FC<AttributePageProps> = ({
const initialForm: AttributePageFormData =
attribute === null
? {
- filterableInDashboard: false,
- filterableInStorefront: false,
+ filterableInDashboard: true,
+ filterableInStorefront: true,
inputType: AttributeInputTypeEnum.DROPDOWN,
name: "",
slug: "",
storefrontSearchPosition: "",
- valueRequired: false,
- visibleInStorefront: false
+ valueRequired: true,
+ visibleInStorefront: true
}
: {
filterableInDashboard: maybe(
() => attribute.filterableInDashboard,
- false
+ true
),
filterableInStorefront: maybe(
() => attribute.filterableInStorefront,
- false
+ true
),
inputType: maybe(
() => attribute.inputType,
@@ -92,8 +92,8 @@ const AttributePage: React.FC<AttributePageProps> = ({
() => attribute.storefrontSearchPosition.toString(),
""
),
- valueRequired: maybe(() => attribute.valueRequired, false),
- visibleInStorefront: maybe(() => attribute.visibleInStorefront, false)
+ valueRequired: maybe(() => attribute.valueRequired, true),
+ visibleInStorefront: maybe(() => attribute.visibleInStorefront, true)
};
const handleSubmit = (data: AttributePageFormData) =>