diff options
author | Julius Härtl <jus@bitgrid.net> | 2023-06-30 10:12:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-30 10:12:41 +0200 |
commit | b1797842784b250fb01ed5e3bf130705eb94751b (patch) | |
tree | 90091133d0afd6eae53c9e05a8dbc716180139d0 | |
parent | 90a78d7caa796a8ff6a688253fd06aa176cd8bf8 (diff) | |
parent | 40b380bb99b1ea5626b4e44a670cb630d909ad35 (diff) | |
download | nextcloud-server-b1797842784b250fb01ed5e3bf130705eb94751b.tar.gz nextcloud-server-b1797842784b250fb01ed5e3bf130705eb94751b.zip |
Merge pull request #39025 from nextcloud/bugfix/noid/actions-empty-files
-rw-r--r-- | apps/files/js/fileactions.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 7e3a0b9f40b..e7994291f38 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -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) { |