diff options
-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) { |