Merge pull request #1358 from Vivekrajput20/master
Fix switch case in react-multimedia-gallery
This commit is contained in:
commit
0408520320
|
@ -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'):
|
||||
|
|
Loading…
Reference in New Issue