From e17a6665177f6c62ce5a067d0738f11f33021a8f Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Mon, 9 Sep 2019 15:04:51 +0200 Subject: Implement custom check components and fix linting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/workflowengine/src/store.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/workflowengine/src/store.js') diff --git a/apps/workflowengine/src/store.js b/apps/workflowengine/src/store.js index 75e53149ea2..a322c7fb3ea 100644 --- a/apps/workflowengine/src/store.js +++ b/apps/workflowengine/src/store.js @@ -85,7 +85,7 @@ const store = new Vuex.Store({ let events = [] if (rule.isComplex === false && rule.fixedEntity === '') { entity = context.state.entities.find((item) => rule.entities && rule.entities[0] === item.id) - entity = entity ? entity : Object.values(context.state.entities)[0] + entity = entity || Object.values(context.state.entities)[0] events = [entity.events[0].eventName] } @@ -124,7 +124,7 @@ const store = new Vuex.Store({ await axios.delete(getApiUrl(`/${rule.id}`)) context.commit('removeRule', rule) }, - setValid (context, { rule, valid }) { + setValid(context, { rule, valid }) { rule.valid = valid context.commit('updateRule', rule) } -- cgit v1.2.3