fix(fe): nested property types

This commit is contained in:
andrewwallacespeckle
2025-10-07 09:36:53 +01:00
parent 3ee06809af
commit bf1ad984a1
@@ -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,