mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-22 09:35:00 +02:00
Use our analytics service properly (#9985)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user