Tusooa Zhu %!s(int64=3) %!d(string=hai) anos
pai
achega
3b4afdf567
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/modules/media_viewer.js

+ 2 - 2
src/modules/media_viewer.js

@@ -20,7 +20,7 @@ const mediaViewer = {
     }
   },
   actions: {
-    setMedia ({ commit, dispatch }, attachments) {
+    setMedia ({ commit }, attachments) {
       const media = attachments.filter(attachment => {
         const type = fileTypeService.fileType(attachment.mimetype)
         return supportedTypes.has(type)
@@ -31,7 +31,7 @@ const mediaViewer = {
       const index = state.media.indexOf(current)
       commit('setCurrentMedia', index || 0)
     },
-    closeMediaViewer ({ commit, dispatch }) {
+    closeMediaViewer ({ commit }) {
       commit('close')
     }
   }