Merge pull request #1358 from Vivekrajput20/master

Fix switch case in react-multimedia-gallery
This commit is contained in:
Hugo Bernier 2020-06-29 23:08:41 -04:00 committed by GitHub
commit 0408520320
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'):