fix(editor): Fix editor telemetry plugin linting issues (no-changelog) (#7014)

Github issue / Community forum post (link here to close automatically):
This commit is contained in:
OlegIvaniv 2023-08-25 11:42:37 +02:00 committed by GitHub
parent ed927d34b2
commit c2c3a8579d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,15 +110,11 @@ export class Telemetry {
const pageName = route.name;
let properties: { [key: string]: string } = {};
if (
route.meta?.telemetry &&
typeof route.meta.telemetry.getProperties === 'function'
) {
if (route.meta?.telemetry && typeof route.meta.telemetry.getProperties === 'function') {
properties = route.meta.telemetry.getProperties(route);
}
const category =
(route.meta?.telemetry?.pageCategory) || 'Editor';
const category = route.meta?.telemetry?.pageCategory || 'Editor';
this.rudderStack.page(category, pageName, properties);
} else {
this.pageEventQueue.push({