1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-30 22:50:10 +03:00

M #~: Lint (#1936)

This commit is contained in:
Sergio Betanzos 2022-04-12 16:46:57 +02:00 committed by GitHub
parent bd7dc03845
commit 63eb2447db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ import { UserInputOneProvisionObject } from 'client/constants'
export const FORM_FIELDS = (inputs) =>
inputs?.map(
({
mandatory,
mandatory = true,
name,
description,
type,
@ -34,9 +34,9 @@ export const FORM_FIELDS = (inputs) =>
options,
}) => ({
name,
label: `${description ?? name} ${ (mandatory === false) ? '' : '*'}`,
label: `${description ?? name} ${mandatory ? '*' : ''}`,
...schemaUserInput({
mandatory: mandatory ?? true,
mandatory,
name,
type,
min,