Skip to content

Commit 8fdead0

Browse files
add hierarchy view for isolation view
1 parent 63e3895 commit 8fdead0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

editor/components/editor/editor-hierarchy/editor-hierarchy.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ import { DashboardHierarchy } from "@code-editor/dashboard";
66

77
export function EditorHierarchy() {
88
const [state] = useEditorState();
9-
const { selectedPage, pages } = state;
9+
const { selectedPage, pages, isolation } = state;
10+
11+
if (isolation.isolated) {
12+
return <DesignLayerHierarchy rootNodeIDs={[isolation.node]} expandAll />;
13+
}
14+
1015
const page = pages.find((p) => p.id == selectedPage);
1116

1217
switch (page?.type) {

0 commit comments

Comments
 (0)