fix(dashboard, product): product attributes update with a relation update (#13019)
* fix(dashboard, product): product attributes update with a relation update * fix: rm log * chore: refactor
This commit is contained in:
+4
-4
@@ -68,10 +68,10 @@ export const ProductAttributesForm = ({
|
||||
const handleSubmit = form.handleSubmit(async (data) => {
|
||||
await mutateAsync(
|
||||
{
|
||||
weight: data.weight ? data.weight : undefined,
|
||||
length: data.length ? data.length : undefined,
|
||||
width: data.width ? data.width : undefined,
|
||||
height: data.height ? data.height : undefined,
|
||||
weight: data.weight ? data.weight : null,
|
||||
length: data.length ? data.length : null,
|
||||
width: data.width ? data.width : null,
|
||||
height: data.height ? data.height : null,
|
||||
mid_code: data.mid_code,
|
||||
hs_code: data.hs_code,
|
||||
origin_country: data.origin_country,
|
||||
|
||||
Reference in New Issue
Block a user