Skip to content

Commit e8b70af

Browse files
committed
Applied requested changes
Signed-off-by: Juergen Kellerer <[email protected]>
1 parent da7e5eb commit e8b70af

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/store/files.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,13 @@ const actions = {
148148
/**
149149
* Append or update given files
150150
*
151-
* @param {object} context the store mutations
151+
* @param {object.commit} commit the store mutation commit function
152+
* @param {object.state} state the store state
152153
* @param {Array} files list of files
153154
* @return {Array} the appended files
154155
*/
155-
appendFiles(context, files = []) {
156-
context.commit('updateFiles', files)
156+
appendFiles({ commit, state }, files = []) {
157+
commit('updateFiles', files)
157158
return files.filter(file => !!state.files[file.fileid])
158159
},
159160

0 commit comments

Comments
 (0)