Skip to content

Commit

Permalink
Fix adding id for the default values
Browse files Browse the repository at this point in the history
  • Loading branch information
cihanandac committed Sep 22, 2023
1 parent 7d6b35f commit 02eb36c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ const View = ({ data, id, path }) => {
data.subblocks.forEach((subblock) => {
let name = getFieldName(subblock.label, subblock.id);
if (!formattedFormData[name]?.value && subblock.default_values) {
formattedFormData[name].field_id = subblock.field_id;
formattedFormData[name] = {
...formattedFormData[name],
value: subblock.default_values,
Expand Down

0 comments on commit 02eb36c

Please sign in to comment.