OnePsycho 3 éve
szülő
commit
4604e1e5f9
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      TEAMModelOS/ClientApp/src/view/ability/Review.vue

+ 1 - 1
TEAMModelOS/ClientApp/src/view/ability/Review.vue

@@ -312,7 +312,7 @@ export default {
       let isPdf = suffix === 'pdf'
       let isVideo = suffix === 'mp4' || suffix === 'webm'
       let isAudio = ['mp3', 'wav'].includes(suffix)
-      let type = isImg ? 'image' : isVideo ? 'video' : isAudio ? 'audio' : 'doc'
+      let type = isImg ? 'image' : isVideo ? 'video' : isAudio ? 'audio' : (isDoc ? 'doc' : '')
       switch (type) {
         case 'doc':
           if (isPdf) {