Refactor ObjectForm component to adjust the order of merging form data, ensuring objectData takes precedence over value for improved data consistency during updates.
This commit is contained in:
parent
e85eda5bb0
commit
7296ee73b8
@ -430,8 +430,8 @@ const ObjectForm = forwardRef(
|
|||||||
setEditLoading(true)
|
setEditLoading(true)
|
||||||
|
|
||||||
const currentFormData = {
|
const currentFormData = {
|
||||||
...value,
|
...objectData,
|
||||||
...objectData
|
...value
|
||||||
}
|
}
|
||||||
onStateChangeRef.current({ editLoading: true })
|
onStateChangeRef.current({ editLoading: true })
|
||||||
await updateObject(id, type, currentFormData)
|
await updateObject(id, type, currentFormData)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user