We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da7e5eb commit e8b70afCopy full SHA for e8b70af
1 file changed
src/store/files.js
@@ -148,12 +148,13 @@ const actions = {
148
/**
149
* Append or update given files
150
*
151
- * @param {object} context the store mutations
+ * @param {object.commit} commit the store mutation commit function
152
+ * @param {object.state} state the store state
153
* @param {Array} files list of files
154
* @return {Array} the appended files
155
*/
- appendFiles(context, files = []) {
156
- context.commit('updateFiles', files)
+ appendFiles({ commit, state }, files = []) {
157
+ commit('updateFiles', files)
158
return files.filter(file => !!state.files[file.fileid])
159
},
160
0 commit comments