Skip to content

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

Fix stories

dominik-zeglen095cbbde0ed4
diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductCreatePage.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductCreatePage.tsx
index f510e73dfe..66d82435c4 100644
--- a/saleor/static/dashboard-next/storybook/stories/products/ProductCreatePage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductCreatePage.tsx
@@ -17,6 +17,8 @@ storiesOf("Views / Products / Create product", module)
errors={[]}
header="Add product"
collections={product.collections}
+ fetchCategories={() => undefined}
+ fetchCollections={() => undefined}
productTypes={productTypes}
categories={[product.category]}
onAttributesEdit={undefined}
@@ -32,6 +34,8 @@ storiesOf("Views / Products / Create product", module)
errors={[]}
header="Add product"
collections={product.collections}
+ fetchCategories={() => undefined}
+ fetchCollections={() => undefined}
productTypes={productTypes}
categories={[product.category]}
onAttributesEdit={undefined}
diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx
index 45123b345e..51a5460c75 100644
--- a/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx
@@ -19,6 +19,8 @@ storiesOf("Views / Products / Product edit", module)
header={product.name}
collections={product.collections}
categories={[product.category]}
+ fetchCategories={() => undefined}
+ fetchCollections={() => undefined}
placeholderImage={placeholderImage}
images={product.images}
variants={product.variants}
@@ -41,6 +43,8 @@ storiesOf("Views / Products / Product edit", module)
header={product.name}
collections={product.collections}
categories={[product.category]}
+ fetchCategories={() => undefined}
+ fetchCollections={() => undefined}
placeholderImage={placeholderImage}
images={[]}
variants={product.variants}
@@ -68,6 +72,8 @@ storiesOf("Views / Products / Product edit", module)
header={product.name}
collections={product.collections}
categories={[product.category]}
+ fetchCategories={() => undefined}
+ fetchCollections={() => undefined}
placeholderImage={placeholderImage}
images={product.images}
variants={product.variants}
@@ -86,6 +92,8 @@ storiesOf("Views / Products / Product edit", module)
errors={[]}
header={undefined}
categories={[]}
+ fetchCategories={() => undefined}
+ fetchCollections={() => undefined}
onBack={() => undefined}
onSubmit={() => undefined}
disabled={true}