Skip to content

Commit ac2a01c

Browse files
authored
Fixed incorrect type check (#220)
1 parent f75e559 commit ac2a01c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/metadata/CreateMetadataDefinition.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export const CreateMetadataDefinition = (): JSX.Element => {
131131

132132
// Remove the options field if widgetType != enum
133133
for (let i = 0; i < formInput.fields.length; i++) {
134-
if (formInput.fields[i].widgetType != "enum") {
134+
if (formInput.fields[i].config.type != "enum") {
135135
delete formInput.fields[i].config.options
136136
}
137137
}

0 commit comments

Comments
 (0)