1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

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

This commit is contained in:
Sergio Betanzos 2021-11-16 10:14:19 +01:00 committed by GitHub
parent 916d85eeee
commit 6351af28d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: {