Skip to content

Commit

Permalink
Update PropertiesPanel.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Oct 10, 2024
1 parent 415ba48 commit 228164f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/project-editor/project/ui/PropertiesPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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) {
Expand Down

0 comments on commit 228164f

Please sign in to comment.