Skip to content

Commit

Permalink
Applied requested changes
Browse files Browse the repository at this point in the history
Signed-off-by: Juergen Kellerer <juergen@k123.eu>
  • Loading branch information
jkellerer committed Oct 26, 2022
1 parent da7e5eb commit e8b70af
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/store/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -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])
},

Expand Down

0 comments on commit e8b70af

Please sign in to comment.