mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 09:20:16 +00:00
Fix build issues and reformat
This commit is contained in:
@@ -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
|
// 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) => {
|
const _setMyNotebooksContentRoot = (newValue: NotebookContentItem) => {
|
||||||
_myNotebooksContentRoot = newValue;
|
_myNotebooksContentRoot = newValue;
|
||||||
setMyNotebooksContentRoot(newValue);
|
setMyNotebooksContentRoot(newValue);
|
||||||
@@ -94,7 +94,7 @@ export const useNotebooks = (context: { container: Explorer }): NotebookHooks =>
|
|||||||
};
|
};
|
||||||
|
|
||||||
const initializeGitHubNotebooksContentRoot = (): NotebookContentItem => {
|
const initializeGitHubNotebooksContentRoot = (): NotebookContentItem => {
|
||||||
let root: NotebookContentItem = undefined;
|
let root: NotebookContentItem;
|
||||||
|
|
||||||
if (context.container.notebookManager?.gitHubOAuthService.isLoggedIn()) {
|
if (context.container.notebookManager?.gitHubOAuthService.isLoggedIn()) {
|
||||||
root = {
|
root = {
|
||||||
|
|||||||
Reference in New Issue
Block a user