Use our analytics service properly (#9985)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2025-10-01 12:30:23 +07:00
committed by GitHub
parent 7d706ec4f1
commit 2b39a954a0
79 changed files with 328 additions and 429 deletions
@@ -22,6 +22,7 @@
import view from '@hcengineering/view'
import { createEventDispatcher } from 'svelte'
import ProcessAttribute from '../ProcessAttribute.svelte'
import { Analytics } from '@hcengineering/analytics'
export let func: ProcessFunction
export let process: Process
@@ -49,11 +50,11 @@
.then((p) => {
editor = p
})
.catch((e) => {
console.error(e)
.catch((e: any) => {
Analytics.handleError(e)
})
} catch (e) {
console.error(e)
} catch (e: any) {
Analytics.handleError(e)
}
}
@@ -22,6 +22,7 @@
import view from '@hcengineering/view'
import { createEventDispatcher } from 'svelte'
import ProcessAttribute from '../ProcessAttribute.svelte'
import { Analytics } from '@hcengineering/analytics'
export let func: ProcessFunction
export let process: Process
@@ -49,11 +50,11 @@
.then((p) => {
editor = p
})
.catch((e) => {
console.error(e)
.catch((e: any) => {
Analytics.handleError(e)
})
} catch (e) {
console.error(e)
} catch (e: any) {
Analytics.handleError(e)
}
}