Fix switch case in react-multimedia-gallery
This commit is contained in:
parent
6352dc8bf2
commit
08cfb93b2e
|
@ -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