Skip to content

Commit

Permalink
if submission is null, don't try to set its metadata with itself
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanbond authored and lane-formio committed Aug 13, 2024
1 parent 694e926 commit f22b62e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Webform.js
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,6 @@ export default class Webform extends NestedDataComponent {
if (!submission || !submission.data) {
submission = {
data: {},
metadata: submission.metadata,
};
}
// Metadata needs to be available before setValue
Expand Down

0 comments on commit f22b62e

Please sign in to comment.