M #~: Fix minor in utils (#1575)

This commit is contained in:
Sergio Betanzos authored and GitHub committed 2021-11-16 10:14:19 +01:00
1 parent 916d85eeee
commit 6351af28d4
1 file changed
+1 -1
+1 -1
View File
@@ -271,7 +271,7 @@ export const schemaUserInput = ({ mandatory, name, type, options, default: defau
.trim()
.concat(requiredSchema(mandatory, name, string()))
.oneOf(values.map(({ value }) => value))
.default(defaultValue ?? firstOption)
.default(defaultValue || firstOption)
}
}
case USER_INPUT_TYPES.array: {