Filter disabled operations out of the rule list

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-01-09 08:25:37 +01:00
parent 8899162463
commit 460ea6d6ce
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 1 additions and 1 deletions

View File

@ -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
})
},