Skip to content

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

Use default values

dominik-zeglen17f073b47dd1
diff --git a/saleor/static/dashboard-next/collections/components/CollectionDetailsPage/CollectionDetailsPage.tsx b/saleor/static/dashboard-next/collections/components/CollectionDetailsPage/CollectionDetailsPage.tsx
index a8b9164de7..5e02fa835c 100644
--- a/saleor/static/dashboard-next/collections/components/CollectionDetailsPage/CollectionDetailsPage.tsx
+++ b/saleor/static/dashboard-next/collections/components/CollectionDetailsPage/CollectionDetailsPage.tsx
@@ -73,13 +73,13 @@ const CollectionDetailsPage = withStyles(styles, {
}: CollectionDetailsPageProps) => (
<Form
initial={{
- backgroundImageAlt: maybe(() => collection.backgroundImage.alt),
- description: maybe(() => collection.description),
+ backgroundImageAlt: maybe(() => collection.backgroundImage.alt, ""),
+ description: maybe(() => collection.description, ""),
isFeatured,
- isPublished: maybe(() => collection.isPublished),
- name: maybe(() => collection.name),
- seoDescription: maybe(() => collection.seoDescription),
- seoTitle: maybe(() => collection.seoTitle)
+ isPublished: maybe(() => collection.isPublished, false),
+ name: maybe(() => collection.name, ""),
+ seoDescription: maybe(() => collection.seoDescription, ""),
+ seoTitle: maybe(() => collection.seoTitle, "")
}}
onSubmit={onSubmit}
confirmLeave