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:
Frane Polić
2025-07-23 21:01:50 +02:00
committed by GitHub
parent c71ace0be2
commit 439c711845
7 changed files with 156 additions and 35 deletions
@@ -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,