fix: analytics logging behavior being incorrect (#3064)

This commit is contained in:
Andrew Bastin
2023-05-23 16:34:28 -04:00
committed by GitHub
parent 1b413e2f47
commit aeb9172144
2 changed files with 10 additions and 1 deletions

View File

@@ -187,6 +187,8 @@ export function useCodemirror(
: null
const initView = (el: any) => {
if (el) platform.ui?.onCodemirrorInstanceMount?.(el)
const extensions = [
basicSetup,
baseTheme,
@@ -268,7 +270,6 @@ export function useCodemirror(
onMounted(() => {
if (el.value) {
if (!view.value) initView(el.value)
platform.ui?.onCodemirrorInstanceMount?.(el.value)
}
})