Skip to content

Commit

Permalink
🐛 [#3557] Don't re-nest item, but prop spread it
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed Oct 27, 2023
1 parent 66d9bee commit 0af4d7e
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 0af4d7e

Please sign in to comment.