From 7296ee73b8dbe5965334f6f276b3050243cae78d Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sat, 4 Jul 2026 22:03:08 +0100 Subject: [PATCH] Refactor ObjectForm component to adjust the order of merging form data, ensuring objectData takes precedence over value for improved data consistency during updates. --- src/components/Dashboard/common/ObjectForm.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Dashboard/common/ObjectForm.jsx b/src/components/Dashboard/common/ObjectForm.jsx index 6d3a11b..4dab3f7 100644 --- a/src/components/Dashboard/common/ObjectForm.jsx +++ b/src/components/Dashboard/common/ObjectForm.jsx @@ -430,8 +430,8 @@ const ObjectForm = forwardRef( setEditLoading(true) const currentFormData = { - ...value, - ...objectData + ...objectData, + ...value } onStateChangeRef.current({ editLoading: true }) await updateObject(id, type, currentFormData)