diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-01-09 08:25:37 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-01-09 08:46:22 +0100 |
commit | 460ea6d6ceaf96bbc064451403e1fec9b3f124cd (patch) | |
tree | 52319e5d514361e0bccebeb229bc2815f4825a9f /apps/workflowengine | |
parent | 8899162463c44c6b22b2b9cee9c3a3d4370bbc7b (diff) | |
download | nextcloud-server-460ea6d6ceaf96bbc064451403e1fec9b3f124cd.tar.gz nextcloud-server-460ea6d6ceaf96bbc064451403e1fec9b3f124cd.zip |
Filter disabled operations out of the rule list
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/workflowengine')
-rw-r--r-- | apps/workflowengine/src/store.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workflowengine/src/store.js b/apps/workflowengine/src/store.js index c02aa99f63a..79524ab4514 100644 --- a/apps/workflowengine/src/store.js +++ b/apps/workflowengine/src/store.js @@ -138,7 +138,7 @@ const store = new Vuex.Store({ }, getters: { getRules(state) { - return state.rules.sort((rule1, rule2) => { + return state.rules.filter((rule) => typeof state.operations[rule.class] !== 'undefined').sort((rule1, rule2) => { return rule1.id - rule2.id || rule2.class - rule1.class }) }, |