fix: Merge form data with group data in EditModal

- Updated the logic in EditModal to merge the existing form data with the first item in groupData if available. This change ensures that relevant data from groupData is incorporated into the form, improving data accuracy and user experience during editing.
This commit is contained in:
kjs 2026-03-10 10:53:25 +09:00
parent 43707cb9a3
commit f565b2d119
1 changed files with 1 additions and 1 deletions

View File

@ -679,7 +679,7 @@ export const EditModal: React.FC<EditModalProps> = ({ className }) => {
(targetComponent as any)?.componentConfig?.columnName ||
targetComponentId;
const currentFormData = groupData.length > 0 ? groupData[0] : formData;
const currentFormData = groupData.length > 0 ? { ...formData, ...groupData[0] } : formData;
const targetValue = currentFormData[fieldKey];
let isMatch = false;