1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

M #~: Fix array user inputs sep ';' in fireedge (#1120)

This commit is contained in:
Sergio Betanzos 2021-04-21 12:01:02 +02:00 committed by GitHub
parent 9935822e52
commit 204fb068d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ const requiredSchema = (mandatory, name, schema) =>
const getRange = (options) =>
options.split('..').map(option => parseFloat(option))
const getValuesFromArray = (options, separator = ',') => options?.split(separator)
const getValuesFromArray = (options, separator = ';') => options?.split(separator)
const getOptionsFromList = (options, separator = ',') =>
options?.split(separator).map(value => ({ text: value, value }))