mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-16 17:25:58 +00:00
Skip refreshing pinned repos if token not available (#219)
This commit is contained in:
parent
1ccffab911
commit
92c4440d38
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user