fix: get detail on product and provider module

This commit is contained in:
Wikzyy
2025-09-09 18:53:55 +07:00
parent c75f36f3ff
commit 59c8b11c70
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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
}));
}