From 5dde23ae545b2a1bb2e460d382c00ea4fa98c0b9 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 30 May 2017 00:01:36 +0100 Subject: [PATCH] fall back to className if no props?.title - for mx_Dialog_spinner primarily Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/Modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Modal.js b/src/Modal.js index 38bcfad448..11c5d3d9c0 100644 --- a/src/Modal.js +++ b/src/Modal.js @@ -105,7 +105,7 @@ class ModalManager { } createDialog(Element, props, className) { - Analytics.trackEvent('Modal', props.title, 'createDialog'); + Analytics.trackEvent('Modal', props && props.title ? props.title : className, 'createDialog'); return this.createDialogAsync((cb) => {cb(Element);}, props, className); }