Fix switch case in react-multimedia-gallery

This commit is contained in:
Vivek Chand 2020-06-28 12:33:54 +05:30 committed by GitHub
parent 6352dc8bf2
commit 08cfb93b2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -122,7 +122,11 @@ export default class ImageGallery extends React.Component<ImageGalleryProps, Ima
let mediaType: string = '';
switch (image.File_x0020_Type) {
case ('jpg' || 'jpeg' || 'png' || 'tiff' || 'gif'):
case ('jpg'):
case ('jpeg'):
case ('png'):
case ('tiff'):
case ('gif'):
mediaType = 'image';
break;
case ('mp4'):