Skip to content

Commit

Permalink
Adding default value label
Browse files Browse the repository at this point in the history
  • Loading branch information
cihanandac committed Sep 22, 2023
1 parent e5ff916 commit 8fc41ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ 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],
label: subblock.label,
value: subblock.default_values,
};
}
Expand Down

0 comments on commit 8fc41ae

Please sign in to comment.