Fix build issues and reformat

This commit is contained in:
Laurent Nguyen 2021-03-12 14:01:35 +01:00
parent 21b92ed4f8
commit 7e992c2b17
2 changed files with 12 additions and 12 deletions

View File

@ -34,7 +34,7 @@ export const useNotebooks = (context: { container: Explorer }): NotebookHooks =>
};
// TODO For now, we need to rely on this, as setMyNotebooksContentRoot() is not synchronous
let _myNotebooksContentRoot: NotebookContentItem = undefined;
let _myNotebooksContentRoot: NotebookContentItem;
const _setMyNotebooksContentRoot = (newValue: NotebookContentItem) => {
_myNotebooksContentRoot = newValue;
setMyNotebooksContentRoot(newValue);
@ -94,7 +94,7 @@ export const useNotebooks = (context: { container: Explorer }): NotebookHooks =>
};
const initializeGitHubNotebooksContentRoot = (): NotebookContentItem => {
let root: NotebookContentItem = undefined;
let root: NotebookContentItem;
if (context.container.notebookManager?.gitHubOAuthService.isLoggedIn()) {
root = {