X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Fcomposer%2Fsrc%2Fsrc%2Fcomponents%2Ffilemanager%2FFileManager.jsx;h=ed9ea93a5c83041b1436f366d6071b221be82299;hp=498cd2aec4f69c759de96e0cdb98792588f7aa61;hb=61b1762cb6a657c5a8eb09d52fbf9a35a2a73aff;hpb=bf55fb20929a5a4609e06020e1f9f3ce0708dc64 diff --git a/skyquake/plugins/composer/src/src/components/filemanager/FileManager.jsx b/skyquake/plugins/composer/src/src/components/filemanager/FileManager.jsx index 498cd2aec..ed9ea93a5 100644 --- a/skyquake/plugins/composer/src/src/components/filemanager/FileManager.jsx +++ b/skyquake/plugins/composer/src/src/components/filemanager/FileManager.jsx @@ -132,7 +132,7 @@ function buildList(self, data) { function contentFolder(context, folder, path, key, inputState, updateFn, sendDownloadFileRequst, deleteFn) { let type = context.props.type; let id = context.props.item.id; - let classId = `DZ-${path.replace(/\//g, '-')}`; + let classId = `DZ-${path.replace(/\/|\s+/g, '-')}`; const onboardDropZone = createDropZone.bind(this, FileManagerUploadDropZone.ACTIONS.onboard, '.ComposerAppAddFile.' + classId, type, id, path); return ( @@ -171,7 +171,7 @@ class ItemUpload extends React.Component { } render() { let {type, id, path, key, ...props} = this.props; - let classId = `DZ-${path.replace(/\//g, '-')}`; + let classId = `DZ-${path.replace(/\/|\s+/g, '-')}`; return (