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,
|
cashback_cash: response.data?.cashback_cash,
|
||||||
status: response.data?.status,
|
status: response.data?.status,
|
||||||
provider: response.data?.provider?.id,
|
provider: response.data?.provider?.id,
|
||||||
|
transaction_type: response.data.transaction_type.id,
|
||||||
process_on_third_party: response.data?.process_on_third_party
|
process_on_third_party: response.data?.process_on_third_party
|
||||||
}));
|
}));
|
||||||
} else {
|
} else {
|
||||||
@ -262,7 +263,7 @@ const EditDialog = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open={showEditDialog} onOpenChange={(open) => handleEditDialog(open, null)}>
|
<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>
|
<DialogHeader>
|
||||||
<DialogTitle>Product - Update</DialogTitle>
|
<DialogTitle>Product - Update</DialogTitle>
|
||||||
<DialogDescription></DialogDescription>
|
<DialogDescription></DialogDescription>
|
||||||
|
|||||||
@ -170,7 +170,6 @@ const EditDialog = () => {
|
|||||||
description: response?.data.description,
|
description: response?.data.description,
|
||||||
type: response?.data.type,
|
type: response?.data.type,
|
||||||
status: response?.data.status,
|
status: response?.data.status,
|
||||||
transaction_type: response?.data.transaction_type?.id || '',
|
|
||||||
agent: response?.data.agent?.id || null
|
agent: response?.data.agent?.id || null
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user