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:
parent
bd7dc03845
commit
63eb2447db
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user