Skip to content

Commit b685d64

Browse files
committed
Fix flow error
1 parent ac5366e commit b685d64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/formBuilder/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ export function checkForUnsupportedFeatures(
322322
Object.keys(allFormInputs).forEach((inputType) => {
323323
allFormInputs[inputType].matchIf.forEach((match) => {
324324
if (match.widget && !widgets.includes(match.widget))
325-
widgets.push(match.widget);
325+
widgets.push(match.widget || ''); // || '' is redundant but here to appease flow
326326
if (match.field && !fields.includes(match.field))
327-
fields.push(match.field);
327+
fields.push(match.field || ''); // || '' is redundant but here to appease flow
328328
});
329329
if (
330330
allFormInputs[inputType].possibleOptions &&

0 commit comments

Comments
 (0)