Skip to content

Commit

Permalink
Use full path when creating notebook (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcraig authored Nov 2, 2024
1 parent e2b4694 commit 85c4f79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/factories/notebook/notebook_factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export class NotebookFactory implements IPanelFactory {
await fileBrowser.model.upload(fileBlob);
const configArgs: IDict = config.args ?? {};
const factory = configArgs['widget-type'] ?? 'default';
const doc = await documentManager.openOrReveal(newName, factory);
const newPath = `${fileBrowser.model.path}/${newName}`;
const doc = await documentManager.openOrReveal(newPath, factory);
if (!doc) {
console.error(`Failed to create widget with ${factory} factory`);
return;
Expand Down

0 comments on commit 85c4f79

Please sign in to comment.