diff options
Diffstat (limited to 'src/components/ui/imageUpload')
-rw-r--r-- | src/components/ui/imageUpload/index.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/ui/imageUpload/index.tsx b/src/components/ui/imageUpload/index.tsx index 89e2c65a2..3b164ed41 100644 --- a/src/components/ui/imageUpload/index.tsx +++ b/src/components/ui/imageUpload/index.tsx | |||
@@ -46,7 +46,7 @@ class ImageUpload extends Component<IProps, IState> { | |||
46 | this.setState({ errorState: false }); | 46 | this.setState({ errorState: false }); |
47 | 47 | ||
48 | for (const file of acceptedFiles) { | 48 | for (const file of acceptedFiles) { |
49 | const imgPath = isWindows ? file.path.replace(/\\/g, '/') : file.path; | 49 | const imgPath = isWindows ? file.path.replaceAll('\\', '/') : file.path; |
50 | this.setState({ | 50 | this.setState({ |
51 | path: imgPath, | 51 | path: imgPath, |
52 | }); | 52 | }); |