From 55da43a6ce6c2b49878cf944a108a0a393247432 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Thu, 7 Mar 2024 10:41:13 +0000 Subject: [PATCH] Ensure that ol_extensions_writefull Sentry tag is defined (#17366) GitOrigin-RevId: c1261f780e439852b9a59d8d8a2022c30ff354e1 --- .../js/features/source-editor/hooks/use-codemirror-scope.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/frontend/js/features/source-editor/hooks/use-codemirror-scope.ts b/services/web/frontend/js/features/source-editor/hooks/use-codemirror-scope.ts index 83d766e1c1..5eea17b8f4 100644 --- a/services/web/frontend/js/features/source-editor/hooks/use-codemirror-scope.ts +++ b/services/web/frontend/js/features/source-editor/hooks/use-codemirror-scope.ts @@ -267,8 +267,8 @@ function useCodeMirrorScope(view: EditorView) { ol_editor_mode: visualRef.current.visual ? 'visual' : 'code', // which editor keybindings are active ('default' | 'vim' | 'emacs') ol_editor_keybindings: settingsRef.current.mode, - // whether Writefull is present ('extension' | 'integration') - ol_extensions_writefull: window.writefull?.type, + // whether Writefull is present ('extension' | 'integration' | 'none') + ol_extensions_writefull: window.writefull?.type ?? 'none', // whether Grammarly is present ol_extensions_grammarly: grammarlyExtensionPresent(), },