We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63e3895 commit 8fdead0Copy full SHA for 8fdead0
1 file changed
editor/components/editor/editor-hierarchy/editor-hierarchy.tsx
@@ -6,7 +6,12 @@ import { DashboardHierarchy } from "@code-editor/dashboard";
6
7
export function EditorHierarchy() {
8
const [state] = useEditorState();
9
- const { selectedPage, pages } = state;
+ const { selectedPage, pages, isolation } = state;
10
+
11
+ if (isolation.isolated) {
12
+ return <DesignLayerHierarchy rootNodeIDs={[isolation.node]} expandAll />;
13
+ }
14
15
const page = pages.find((p) => p.id == selectedPage);
16
17
switch (page?.type) {
0 commit comments