fix(fe): nested property types
This commit is contained in:
@@ -475,10 +475,12 @@ export const extractNestedProperties = (
|
||||
|
||||
const value = obj[key]
|
||||
const newPath = [...currentPath, key]
|
||||
const valueType = getValueType(value)
|
||||
const isParam = value && isParameter(value)
|
||||
|
||||
if (valueType === 'object' && value !== null && !isParam) {
|
||||
const isActualObject =
|
||||
typeof value === 'object' && value !== null && !Array.isArray(value) && !isParam
|
||||
|
||||
if (isActualObject) {
|
||||
properties.push(
|
||||
...extractNestedProperties(
|
||||
value as Record<string, unknown>,
|
||||
@@ -498,6 +500,7 @@ export const extractNestedProperties = (
|
||||
units: param.units
|
||||
})
|
||||
} else {
|
||||
const valueType = getValueType(value)
|
||||
properties.push({
|
||||
name: key,
|
||||
path: newPath,
|
||||
|
||||
Reference in New Issue
Block a user