Skip to content

Commit

Permalink
fix: fix workspace url
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanba authored and sunshinesmilelk committed Apr 1, 2024
1 parent 615dec4 commit de73431
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/libro-jupyter/src/libro-jupyter-workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ export class JupyterWorkspaceService
protected workspaceData: JupyterWorkspaceData;

onViewStart() {
const settings = { ...this.serverConnection.settings };
const url = URL.join(settings.baseUrl, '/libro/api/workspace');
this.serverManager.ready
.then(() => this.serverConnection.makeRequest(url, {}))
.then(() => {
const settings = { ...this.serverConnection.settings };
const url = URL.join(settings.baseUrl, '/libro/api/workspace');
return this.serverConnection.makeRequest(url, {});
})
.then(async (res) => {
const data = await res.json();
this.workspaceData = data;
Expand Down

0 comments on commit de73431

Please sign in to comment.