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

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2017-05-30 00:01:36 +01:00
parent 1bba419235
commit 5dde23ae54
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}