Просмотр исходного кода

Ensure that ol_extensions_writefull Sentry tag is defined (#17366)

GitOrigin-RevId: c1261f780e439852b9a59d8d8a2022c30ff354e1
Alf Eaton 2 лет назад
Родитель
Сommit
55da43a6ce

+ 2 - 2
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(),
       },