Merge pull request #39025 from nextcloud/bugfix/noid/actions-empty-files

This commit is contained in:
Julius Härtl 2023-06-30 10:12:41 +02:00 committed by GitHub
commit b179784278
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -597,8 +597,8 @@
Object.values = objectValues;
}
var menuActions = Object.values(this.actions.all).filter(function (action) {
return action.type !== OCA.Files.FileActions.TYPE_INLINE;
var menuActions = Object.values(actions).filter(function (action) {
return action.type !== OCA.Files.FileActions.TYPE_INLINE && (!defaultAction || action.name !== defaultAction.name)
});
// do not render the menu if nothing is in it
if (menuActions.length > 0) {