Skip to content

Commit

Permalink
Fix: rjsf-team#3922 by addind a condition to the spread operator when…
Browse files Browse the repository at this point in the history
… creating the newFormData in sanitizeDataForNewSchema(
  • Loading branch information
lindolo25 committed Nov 9, 2023
1 parent 9e3327a commit 87d4208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/schema/sanitizeDataForNewSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default function sanitizeDataForNewSchema<
});

newFormData = {
...data,
...(typeof data == 'string' || Array.isArray(data) ? {} : data),
...removeOldSchemaData,
...nestedData,
};
Expand Down

0 comments on commit 87d4208

Please sign in to comment.