Skip to content

Commit

Permalink
remove unnecessary use of spread operator
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowBunchie committed Jan 30, 2024
1 parent c23831d commit 8cdbcf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/admin/src/targetGroups/TargetGroupForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 8cdbcf4

Please sign in to comment.