Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix types
dominik-zeglen44acb31e8d38
diff --git a/saleor/static/dashboard-next/products/fixtures.ts b/saleor/static/dashboard-next/products/fixtures.tsindex f9adad8bc3..f6100bec54 100644--- a/saleor/static/dashboard-next/products/fixtures.ts+++ b/saleor/static/dashboard-next/products/fixtures.ts@@ -1,8 +1,10 @@import { ProductDetails_product } from "./types/ProductDetails";+import { ProductVariantCreateData_product } from "./types/ProductVariantCreateData";export const product: (placeholderImage: string-) => ProductDetails_product = placeholderImage => ({+) => ProductDetails_product &+ ProductVariantCreateData_product = placeholderImage => ({__typename: "Product",attributes: [{@@ -212,13 +214,26 @@ export const product: (seoTitle: "Ergonomic Plastic Bacon",variantAttributes: [{+ __typename: "Attribute",id: "pta18161",name: "Color",slug: "color",- sortNumber: 0,+ sortOrder: 0,values: [- { id: "ptvav47282", sortNumber: 0, name: "Black", slug: "black" },- { id: "ptvav17253", sortNumber: 1, name: "White", slug: "white" }+ {+ __typename: "AttributeValue",+ id: "ptvav47282",+ name: "Black",+ slug: "black",+ sortOrder: 0+ },+ {+ __typename: "AttributeValue",+ id: "ptvav17253",+ name: "White",+ slug: "white",+ sortOrder: 1+ }]}]@@ -252,9 +267,13 @@ export const product: (__typename: "ProductVariant",id: "pv75934",image: {+ __typename: "ProductImageCountableConnection",edges: [{+ __typename: "ProductImageCountableEdge",node: {+ __typename: "ProductImage",+ id: "pi92837",url: placeholderImage}}@@ -292,9 +311,13 @@ export const product: (__typename: "ProductVariant",id: "pv68615",image: {+ __typename: "ProductImageCountableConnection",edges: [{+ __typename: "ProductImageCountableEdge",node: {+ __typename: "ProductImage",+ id: "pi81234",url: placeholderImage}}diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductVariantCreatePage.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductVariantCreatePage.tsxindex 43889c73c5..4b492745e4 100644--- a/saleor/static/dashboard-next/storybook/stories/products/ProductVariantCreatePage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductVariantCreatePage.tsx@@ -55,6 +55,7 @@ storiesOf("Views / Products / Create product variant", module)errors={[]}header="Add variant"loading={true}+ product={undefined}onBack={() => undefined}onSubmit={() => undefined}onVariantClick={undefined}