Skip to content

Commit

Permalink
Return only first system action as fallback instead of full list
Browse files Browse the repository at this point in the history
The function that triggers the default action expects to receive only
one action, not a list.
  • Loading branch information
kulmann committed Nov 16, 2021
1 parent d8de657 commit edb4861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web-app-files/src/mixins/fileActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default {
}

// fallback: system actions
return this.$_fileActions_systemActions.filter(filterCallback)
return this.$_fileActions_systemActions.filter(filterCallback)[0]
},

$_fileActions_getAllAvailableActions(resource) {
Expand Down

0 comments on commit edb4861

Please sign in to comment.