This commit is contained in:
Tusooa Zhu 2021-08-02 22:45:19 -04:00
parent a485ebc2bb
commit 3b4afdf567
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224

View File

@ -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')
}
}