fall back to className if no props?.title - for mx_Dialog_spinner primarily

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-05-30 00:01:36 +01:00
parent 1bba419235
commit 5dde23ae54

View file

@ -105,7 +105,7 @@ class ModalManager {
} }
createDialog(Element, props, className) { 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); return this.createDialogAsync((cb) => {cb(Element);}, props, className);
} }