Fix check listing

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-09-12 17:15:46 +02:00
parent 978d312e69
commit 69ed4bb939
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ const store = new Vuex.Store({
*/
getChecksForEntity(state) {
return (entity) => {
return state.checks
return Object.values(state.checks)
.filter((check) => check.supportedEntities.indexOf(entity) > -1 || check.supportedEntities.length === 0)
.map((check) => state.plugins.checks[check.id])
.reduce((obj, item) => {