summaryrefslogtreecommitdiffstats
path: root/webapp/components
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components')
-rw-r--r--webapp/components/file_preview.jsx2
-rw-r--r--webapp/components/view_image.jsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/file_preview.jsx b/webapp/components/file_preview.jsx
index afdb701e0..1e747b372 100644
--- a/webapp/components/file_preview.jsx
+++ b/webapp/components/file_preview.jsx
@@ -33,7 +33,7 @@ export default class FilePreview extends React.Component {
let className = 'file-preview';
let previewImage;
- if (type === 'image') {
+ if (type === 'image' || type === 'svg') {
previewImage = (
<img
className='file-preview__image'
diff --git a/webapp/components/view_image.jsx b/webapp/components/view_image.jsx
index 4447e9966..580c9e7a4 100644
--- a/webapp/components/view_image.jsx
+++ b/webapp/components/view_image.jsx
@@ -180,7 +180,7 @@ export default class ViewImageModal extends React.Component {
if (this.state.loaded[this.state.imgId]) {
const fileType = Utils.getFileType(fileInfo.extension);
- if (fileType === 'image') {
+ if (fileType === 'image' || fileType === 'svg') {
content = (
<ImagePreview
fileInfo={fileInfo}