From bf1ad984a1ea7fe066a27070b0b11c9388069492 Mon Sep 17 00:00:00 2001 From: andrewwallacespeckle Date: Tue, 7 Oct 2025 09:36:53 +0100 Subject: [PATCH] fix(fe): nested property types --- packages/frontend-2/lib/viewer/helpers/filters/utils.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/frontend-2/lib/viewer/helpers/filters/utils.ts b/packages/frontend-2/lib/viewer/helpers/filters/utils.ts index 075e431a9..d88ce7875 100644 --- a/packages/frontend-2/lib/viewer/helpers/filters/utils.ts +++ b/packages/frontend-2/lib/viewer/helpers/filters/utils.ts @@ -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, @@ -498,6 +500,7 @@ export const extractNestedProperties = ( units: param.units }) } else { + const valueType = getValueType(value) properties.push({ name: key, path: newPath,