From 8cdbcf48df375f6a0b5a8125fe8fe9f594da1201 Mon Sep 17 00:00:00 2001 From: Denise Buder Date: Tue, 30 Jan 2024 12:28:01 +0100 Subject: [PATCH] remove unnecessary use of spread operator --- packages/admin/src/targetGroups/TargetGroupForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/admin/src/targetGroups/TargetGroupForm.tsx b/packages/admin/src/targetGroups/TargetGroupForm.tsx index 110beaab..2c0d95c3 100644 --- a/packages/admin/src/targetGroups/TargetGroupForm.tsx +++ b/packages/admin/src/targetGroups/TargetGroupForm.tsx @@ -74,7 +74,7 @@ export function TargetGroupForm({ id, scope, additionalFormFields, input2State, additionalInitialValues = input2State(data?.targetGroup); } - return data?.targetGroup ? { title: data.targetGroup.title, ...additionalInitialValues } : { ...additionalInitialValues }; + return data?.targetGroup ? { title: data.targetGroup.title, ...additionalInitialValues } : additionalInitialValues; }, [data?.targetGroup, input2State]); const saveConflict = useFormSaveConflict({