From 3b4afdf567a081338a9f74319c689c7b7fe55bb6 Mon Sep 17 00:00:00 2001 From: Tusooa Zhu Date: Mon, 2 Aug 2021 22:45:19 -0400 Subject: [PATCH] Clean up --- src/modules/media_viewer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/media_viewer.js b/src/modules/media_viewer.js index 0299b04e..ebcba01d 100644 --- a/src/modules/media_viewer.js +++ b/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') } }