From e8b70af750e9def36c1af716c6dd07c7f9f5c100 Mon Sep 17 00:00:00 2001 From: Juergen Kellerer Date: Wed, 26 Oct 2022 17:14:12 +0200 Subject: [PATCH] Applied requested changes Signed-off-by: Juergen Kellerer --- src/store/files.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/store/files.js b/src/store/files.js index f48d4f365..7862b68ee 100644 --- a/src/store/files.js +++ b/src/store/files.js @@ -148,12 +148,13 @@ const actions = { /** * Append or update given files * - * @param {object} context the store mutations + * @param {object.commit} commit the store mutation commit function + * @param {object.state} state the store state * @param {Array} files list of files * @return {Array} the appended files */ - appendFiles(context, files = []) { - context.commit('updateFiles', files) + appendFiles({ commit, state }, files = []) { + commit('updateFiles', files) return files.filter(file => !!state.files[file.fileid]) },