Skip to content

Commit

Permalink
suggested changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Meriem-BenIsmail committed Jan 9, 2025
1 parent ce23301 commit 606160a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/docprovider-extension/src/filebrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,8 @@ export const statusBarTimeline: JupyterFrontEndPlugin<void> = {
const currentWidget = app.shell
.currentWidget as DocumentWidget | null;

if (currentWidget && currentWidget.context) {
return !!currentWidget.context.model.collaborative;
}
return false;
return currentWidget?.context?.model?.collaborative || false;

}
});
}
Expand Down

0 comments on commit 606160a

Please sign in to comment.