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

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) => {