fix update Provider

- set default value to null
This commit is contained in:
Wikzyy
2025-04-11 10:12:34 +07:00
parent adfc426442
commit 77b4f3d11a
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ const AddDialog = () => {
return; return;
} }
console.log(formField); // console.log(formField);
doCreateProvider(e); doCreateProvider(e);
setAlert({ show: false, message: '' }); setAlert({ show: false, message: '' });
}; };

View File

@ -156,7 +156,7 @@ const EditDialog = () => {
type: response?.data.type, type: response?.data.type,
status: response?.data.status, status: response?.data.status,
transaction_type: response?.data.transaction_type.id, transaction_type: response?.data.transaction_type.id,
agent: response?.data.agent?.id || '' agent: response?.data.agent?.id || null
})); }));
} }
}, []); }, []);