Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add erros to category and productType field
Krzysztof Bialoglowiczbb486a05e5ec
diff --git a/saleor/static/dashboard-next/products/components/ProductOrganization/ProductOrganization.tsx b/saleor/static/dashboard-next/products/components/ProductOrganization/ProductOrganization.tsxindex 22529123c7..c72a83f525 100644--- a/saleor/static/dashboard-next/products/components/ProductOrganization/ProductOrganization.tsx+++ b/saleor/static/dashboard-next/products/components/ProductOrganization/ProductOrganization.tsx@@ -93,6 +93,7 @@ const ProductOrganization = withStyles(styles, { name: "ProductOrganization" })(collections,data,disabled,+ errors,fetchCategories,fetchCollections,product,@@ -191,12 +192,15 @@ const ProductOrganization = withStyles(styles, { name: "ProductOrganization" })(}});};+ console.log(errors);return (<Card className={classes.card}><CardTitle title={i18n.t("Organize Product")} /><CardContent>{canChangeType ? (<SingleAutocompleteSelectField+ error={!!errors.productType}+ helperText={errors.productType}name="productType"disabled={!!product || disabled}label={i18n.t("Product Type")}@@ -211,6 +215,7 @@ const ProductOrganization = withStyles(styles, { name: "ProductOrganization" })(}value={data.productType}onChange={handleProductTypeSelect}+/>) : (<>@@ -271,6 +276,8 @@ const ProductOrganization = withStyles(styles, { name: "ProductOrganization" })()}<hr className={classes.hr} /><SingleAutocompleteSelectField+ error={!!errors.category}+ helperText={errors.category}disabled={disabled}label={i18n.t("Category")}choices={disabled ? [] : categories}