Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Handle list errors
dominik-zeglen76d2855e0302
diff --git a/saleor/static/dashboard-next/components/Form/Form.tsx b/saleor/static/dashboard-next/components/Form/Form.tsxindex ea26a73c1c..b75a14c61a 100644--- a/saleor/static/dashboard-next/components/Form/Form.tsx+++ b/saleor/static/dashboard-next/components/Form/Form.tsx@@ -62,7 +62,10 @@ class Form<T extends {} = {}> extends React.Component<FormProps<T>, T> {data: this.state,errors: errors? errors.reduce(- (prev, curr) => ({ ...prev, [curr.field]: curr.message }),+ (prev, curr) => ({+ ...prev,+ [curr.field.split(":")[0]]: curr.message+ }),{}): {},