From d690f0538febd4db150a917938e0d39b86669229 Mon Sep 17 00:00:00 2001 From: Brian Miller Date: Mon, 2 Dec 2024 11:09:44 -0600 Subject: [PATCH] correctly add label when set --- .../marko-web-theme-monorail/browser/content-meter-track.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/marko-web-theme-monorail/browser/content-meter-track.vue b/packages/marko-web-theme-monorail/browser/content-meter-track.vue index a6c3e47dc..b5174ab82 100644 --- a/packages/marko-web-theme-monorail/browser/content-meter-track.vue +++ b/packages/marko-web-theme-monorail/browser/content-meter-track.vue @@ -83,7 +83,7 @@ export default { window.p1events('track', { category: 'Content Meter', action, - label, + ...(label && { label }), props: { n: views }, }); this.EventBus.$emit(`identity-x-content-meter-${action}`, { payload: { views, remaining, overlayDisplayed }});