Skip to content

Commit 390f660

Browse files
Removed document from the file view in browser since its not user editable
1 parent f609adf commit 390f660

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎packages/app-page-layer/src/PageTree.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export const PageTree: React.FC<{
102102
for (let i = 0; i < props.pagesInfo.length; i++) {
103103
const path = props.pagesInfo[i].unixFilepath;
104104
const route = props.pagesInfo[i].routeObjectPath;
105+
if (route === "/_document") continue;
105106
const pathArr = path.split("/").slice(1);
106107
let pathArrLen = pathArr.length;
107108
createTreeNodes(pathArr, pathArrLen, route, treeNodes);
@@ -122,8 +123,6 @@ export const PageTree: React.FC<{
122123
setCurrSelectedPath(path);
123124
};
124125

125-
console.log(treeNodesList);
126-
127126
return (
128127
<DirectoryTree
129128
onSelect={onSelect}

0 commit comments

Comments
 (0)