forked from AkkomaGang/akkoma-fe
Clean up
This commit is contained in:
parent
a485ebc2bb
commit
3b4afdf567
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue