diff --git a/src/Explorer/Notebook/useNotebook.ts b/src/Explorer/Notebook/useNotebook.ts index eae023783..2f4b086b1 100644 --- a/src/Explorer/Notebook/useNotebook.ts +++ b/src/Explorer/Notebook/useNotebook.ts @@ -187,11 +187,14 @@ export const useNotebook: UseStore = create((set, get) => ({ path: "Gallery", type: NotebookContentItemType.File, }; - const gitHubNotebooksContentRoot = { - name: "GitHub repos", - path: "PsuedoDir", - type: NotebookContentItemType.Directory, - }; + const gitHubNotebooksContentRoot = notebookManager?.gitHubOAuthService?.isLoggedIn() + ? { + name: "GitHub repos", + path: "PsuedoDir", + type: NotebookContentItemType.Directory, + } + : undefined; + set({ myNotebooksContentRoot, galleryContentRoot,