mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-05-20 04:07:39 +01:00
Skip refreshing pinned repos if token not available (#219)
This commit is contained in:
@@ -113,11 +113,14 @@ export default class NotebookManager {
|
|||||||
this.params.resourceTree.initializeGitHubRepos(pinnedRepos);
|
this.params.resourceTree.initializeGitHubRepos(pinnedRepos);
|
||||||
this.params.resourceTree.triggerRender();
|
this.params.resourceTree.triggerRender();
|
||||||
});
|
});
|
||||||
this.junoClient.getPinnedRepos(this.gitHubOAuthService.getTokenObservable()()?.scope);
|
this.refreshPinnedRepos();
|
||||||
}
|
}
|
||||||
|
|
||||||
public refreshPinnedRepos(): void {
|
public refreshPinnedRepos(): void {
|
||||||
this.junoClient.getPinnedRepos(this.gitHubOAuthService.getTokenObservable()()?.scope);
|
const token = this.gitHubOAuthService.getTokenObservable()();
|
||||||
|
if (token) {
|
||||||
|
this.junoClient.getPinnedRepos(token.scope);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async openPublishNotebookPane(
|
public async openPublishNotebookPane(
|
||||||
|
|||||||
Reference in New Issue
Block a user