Skip to content

Commit

Permalink
Fix Timeline Slider Visibility in Status Bar for Certain Documents (#423
Browse files Browse the repository at this point in the history
)

* bug

* timeline displayed for documents other than notebooks.

* timeline displayed for documents other than notebooks.

* remove rtc

* remove check for path

* suggested changes.

* pre-commit
  • Loading branch information
Meriem-BenIsmail authored Jan 9, 2025
1 parent c956eea commit 081e588
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions packages/docprovider-extension/src/filebrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,20 +257,7 @@ export const statusBarTimeline: JupyterFrontEndPlugin<void> = {
const currentWidget = app.shell
.currentWidget as DocumentWidget | null;

if (
currentWidget &&
currentWidget.context &&
typeof currentWidget.context.path === 'string'
) {
const documentId =
currentWidget.context.model.sharedModel.getState(
'document_id'
) as string;
return (
!!documentId && !!currentWidget.context.model.collaborative
);
}
return false;
return currentWidget?.context?.model?.collaborative || false;
}
});
}
Expand Down

0 comments on commit 081e588

Please sign in to comment.