fix update Provider
- set default value to null
This commit is contained in:
@ -133,7 +133,7 @@ const AddDialog = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(formField);
|
||||
// console.log(formField);
|
||||
doCreateProvider(e);
|
||||
setAlert({ show: false, message: '' });
|
||||
};
|
||||
|
||||
@ -156,7 +156,7 @@ const EditDialog = () => {
|
||||
type: response?.data.type,
|
||||
status: response?.data.status,
|
||||
transaction_type: response?.data.transaction_type.id,
|
||||
agent: response?.data.agent?.id || ''
|
||||
agent: response?.data.agent?.id || null
|
||||
}));
|
||||
}
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user