diff --git a/packages/docprovider-extension/src/filebrowser.ts b/packages/docprovider-extension/src/filebrowser.ts index 6164fd46..84a98b2b 100644 --- a/packages/docprovider-extension/src/filebrowser.ts +++ b/packages/docprovider-extension/src/filebrowser.ts @@ -257,10 +257,8 @@ export const statusBarTimeline: JupyterFrontEndPlugin = { 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; + } }); }