Skip to content

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

Fix stories (#2390)

Dominik Żegleń97cee01b4673
diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx
index 7109431d97..31f4b7f9c8 100644
--- a/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx
@@ -13,6 +13,7 @@ storiesOf("Views / Products / Product edit", module)
.addDecorator(Decorator)
.add("when data is fully loaded", () => (
<ProductUpdatePage
+ errors={[]}
onBack={() => {}}
onSubmit={() => {}}
product={product}
@@ -30,6 +31,7 @@ storiesOf("Views / Products / Product edit", module)
))
.add("when loading data", () => (
<ProductUpdatePage
+ errors={[]}
categories={[]}
onBack={() => {}}
onSubmit={() => {}}
diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductVariantPage.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductVariantPage.tsx
index 9110d6a42b..57c5c5d040 100644
--- a/saleor/static/dashboard-next/storybook/stories/products/ProductVariantPage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductVariantPage.tsx
@@ -12,6 +12,7 @@ storiesOf("Views / Products / Product variant details", module)
.addDecorator(Decorator)
.add("when loaded data", () => (
<ProductVariantPage
+ errors={[]}
variant={variant}
onBack={() => () => {}}
onDelete={() => {}}
@@ -22,6 +23,7 @@ storiesOf("Views / Products / Product variant details", module)
))
.add("when loading data", () => (
<ProductVariantPage
+ errors={[]}
loading={true}
onBack={() => () => {}}
placeholderImage={placeholderImage}