fix: get detail on product and provider module
This commit is contained in:
@ -211,6 +211,7 @@ const EditDialog = () => {
|
||||
cashback_cash: response.data?.cashback_cash,
|
||||
status: response.data?.status,
|
||||
provider: response.data?.provider?.id,
|
||||
transaction_type: response.data.transaction_type.id,
|
||||
process_on_third_party: response.data?.process_on_third_party
|
||||
}));
|
||||
} else {
|
||||
@ -262,7 +263,7 @@ const EditDialog = () => {
|
||||
|
||||
return (
|
||||
<Dialog open={showEditDialog} onOpenChange={(open) => handleEditDialog(open, null)}>
|
||||
<DialogContent className="container-fixed max-w-[768px] flex flex-col p-5 overflow-hidden">
|
||||
<DialogContent className="container-fixed max-w-[1000px] flex flex-col p-5 overflow-hidden">
|
||||
<DialogHeader>
|
||||
<DialogTitle>Product - Update</DialogTitle>
|
||||
<DialogDescription></DialogDescription>
|
||||
|
||||
@ -170,7 +170,6 @@ const EditDialog = () => {
|
||||
description: response?.data.description,
|
||||
type: response?.data.type,
|
||||
status: response?.data.status,
|
||||
transaction_type: response?.data.transaction_type?.id || '',
|
||||
agent: response?.data.agent?.id || null
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user