From 228164ff558ce5e8b8e8569ab82823eeca91f71a Mon Sep 17 00:00:00 2001 From: Martin Vladic Date: Thu, 10 Oct 2024 14:22:48 +0200 Subject: [PATCH] Update PropertiesPanel.tsx --- packages/project-editor/project/ui/PropertiesPanel.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/project-editor/project/ui/PropertiesPanel.tsx b/packages/project-editor/project/ui/PropertiesPanel.tsx index 7fb436af0..f1d29601e 100644 --- a/packages/project-editor/project/ui/PropertiesPanel.tsx +++ b/packages/project-editor/project/ui/PropertiesPanel.tsx @@ -6,11 +6,13 @@ import { ProjectContext } from "project-editor/project/context"; import { getParent } from "project-editor/core/object"; import { EezValueObject, + getAncestorOfType, getPropertiesPanelLabel, isObjectExists } from "project-editor/store"; import { PropertyGrid } from "project-editor/ui-components/PropertyGrid"; import { ProjectEditor } from "project-editor/project-editor-interface"; +import { Settings } from "../project"; export const PropertiesPanel = observer( class PropertiesPanel extends React.Component { @@ -35,7 +37,11 @@ export const PropertiesPanel = observer( let title; const objects = this.objects - .filter(object => object != undefined) + .filter( + object => + object != undefined && + !getAncestorOfType(object, Settings.classInfo) + ) .filter(object => isObjectExists(object)); if (objects.length == 0) {