logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 3b4afdf567a081338a9f74319c689c7b7fe55bb6
parent a485ebc2bb120e7cc6eafb7d86a5f876608f7fe1
Author: Tusooa Zhu <tusooa@kazv.moe>
Date:   Mon,  2 Aug 2021 22:45:19 -0400

Clean up

Diffstat:

Msrc/modules/media_viewer.js4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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') } }