diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx index a64b06a3be..16e2084096 100644 --- a/webapp/utils/utils.jsx +++ b/webapp/utils/utils.jsx @@ -36,7 +36,7 @@ export function createSafeId(str) { return null; } - return str.replace(' ', '_'); + return str.replace(new RegExp(' ', 'g'), '_'); } export function cmdOrCtrlPressed(e) {