diff --git a/webapp/components/setting_item_max.jsx b/webapp/components/setting_item_max.jsx index 9f3c4f0cf8..2da5003947 100644 --- a/webapp/components/setting_item_max.jsx +++ b/webapp/components/setting_item_max.jsx @@ -107,7 +107,7 @@ export default class SettingItemMax extends React.Component { {clientError} {submit} {this.props.title} {editButton}
  • {this.props.describe} diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx index b3370e88c3..820f1a1c74 100644 --- a/webapp/utils/utils.jsx +++ b/webapp/utils/utils.jsx @@ -31,6 +31,14 @@ export function isMac() { return navigator.platform.toUpperCase().indexOf('MAC') >= 0; } +export function createSafeId(str) { + if (str === null) { + return null; + } + + return str.replace(' ', '_'); +} + export function cmdOrCtrlPressed(e) { return (isMac() && e.metaKey) || (!isMac() && e.ctrlKey && !e.altKey); }