Merge pull request #17138 from nextcloud/bugfix/noid/workflow

Workflowengine: Fix check listing
This commit is contained in:
blizzz 2019-09-17 11:59:08 +02:00 committed by GitHub
commit 1c45c04251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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