fix form edit transaction type on manage provider

This commit is contained in:
Wikzyy
2025-04-17 11:32:00 +07:00
parent 9e67880a9e
commit 9d310e8927

View File

@ -155,11 +155,11 @@ const EditDialog = () => {
if (response?.status) { if (response?.status) {
setFormField((prev) => ({ setFormField((prev) => ({
...prev, ...prev,
name: response?.data.name || null, name: response?.data.name,
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 || null, transaction_type: response?.data.transaction_type?.id || '',
agent: response?.data.agent?.id || null agent: response?.data.agent?.id || null
})); }));
} }
@ -327,7 +327,7 @@ const EditDialog = () => {
setFormField({ ...formField, transaction_type: value }) setFormField({ ...formField, transaction_type: value })
} }
> >
<SelectTrigger> <SelectTrigger className="min-h-[40px] items-center">
<SelectValue placeholder="Select Transaction Type" /> <SelectValue placeholder="Select Transaction Type" />
</SelectTrigger> </SelectTrigger>
<SelectContent> <SelectContent>