Yansen před 1 rokem
rodič
revize
4c81de0c4e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      src/pages/issue/detail/components/AttachList.jsx

+ 1
- 1
src/pages/issue/detail/components/AttachList.jsx Zobrazit soubor

11
       (attachList || []).map(attach => (
11
       (attachList || []).map(attach => (
12
         <div key={attach.attachId}>
12
         <div key={attach.attachId}>
13
           {
13
           {
14
-            !attach.fileType || attach.fileType == 'image' ?
14
+            !attach.fileType || attach.fileType?.indexOf('image') > -1 ?
15
               <Image style={{width: '100%', height: '100%'}} src={attach.url} /> :
15
               <Image style={{width: '100%', height: '100%'}} src={attach.url} /> :
16
               <video controls style={{width: '100%', height: '100%'}} src={attach.url}></video>
16
               <video controls style={{width: '100%', height: '100%'}} src={attach.url}></video>
17
           }
17
           }