From 606160afef5a14f3bb6b7af511cc11eefbc12404 Mon Sep 17 00:00:00 2001 From: Meriem-BenIsmail Date: Thu, 9 Jan 2025 10:18:54 +0100 Subject: [PATCH] suggested changes. --- packages/docprovider-extension/src/filebrowser.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; + } }); }