Skip to content

Commit 081e588

Browse files
Fix Timeline Slider Visibility in Status Bar for Certain Documents (#423)
* 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
1 parent c956eea commit 081e588

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

packages/docprovider-extension/src/filebrowser.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -257,20 +257,7 @@ export const statusBarTimeline: JupyterFrontEndPlugin<void> = {
257257
const currentWidget = app.shell
258258
.currentWidget as DocumentWidget | null;
259259

260-
if (
261-
currentWidget &&
262-
currentWidget.context &&
263-
typeof currentWidget.context.path === 'string'
264-
) {
265-
const documentId =
266-
currentWidget.context.model.sharedModel.getState(
267-
'document_id'
268-
) as string;
269-
return (
270-
!!documentId && !!currentWidget.context.model.collaborative
271-
);
272-
}
273-
return false;
260+
return currentWidget?.context?.model?.collaborative || false;
274261
}
275262
});
276263
}

0 commit comments

Comments
 (0)