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

M #~: Remove unused lines (#2229)

(cherry picked from commit f58b58919c4d7f225b90b68426799bd46c0dc42d)
This commit is contained in:
Sergio Betanzos 2022-07-13 19:08:52 +02:00 committed by Tino Vazquez
parent 17dfff2f21
commit 1d33ca8fd5
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -172,12 +172,6 @@ const FieldComponent = memo(({ id, cy, dependOf, ...attributes }) => {
defaultValue: Array.isArray(dependOf) ? [] : undefined,
})
/* const valueOfDependField = useMemo(() => {
if (!dependOf) return null
return watch(nameOfDependField)
}, [dependOf, watch, nameOfDependField]) */
const { name, type, htmlType, grid, ...fieldProps } = Object.entries(
attributes
).reduce((field, attribute) => {