Skip to content

Commit

Permalink
Merge pull request #3556 from open-formulieren/bug/maybe-fix-iotype-s…
Browse files Browse the repository at this point in the history
…elect

🐛 Don't re-nest item, but prop spread it
  • Loading branch information
sergei-maertens authored Oct 30, 2023
2 parents f7ec30c + 0af4d7e commit b33793f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openforms/js/components/form/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const REGISTRATION = {
// no need for label if we have one backend
if (backends.length == 1 && labeledData.length) labeledData[0].backendLabel = '';
const labeledItems = labeledData
.map(({backendLabel, data}) => data.map(item => ({backendLabel, item})))
.map(({backendLabel, data}) => data.map(item => ({backendLabel, ...item})))
.reduce((joinedArray, items) => joinedArray.concat(items), []);
instance.setItems(labeledItems);
});
Expand Down

0 comments on commit b33793f

Please sign in to comment.