summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/EventModuleEdit.vue
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/components/EventModuleEdit.vue')
-rw-r--r--webapp/src/components/EventModuleEdit.vue9
1 files changed, 1 insertions, 8 deletions
diff --git a/webapp/src/components/EventModuleEdit.vue b/webapp/src/components/EventModuleEdit.vue
index 196a94e..5421fba 100644
--- a/webapp/src/components/EventModuleEdit.vue
+++ b/webapp/src/components/EventModuleEdit.vue
@@ -458,14 +458,7 @@ export default {
this.description = value.info.description || ''
this.important = value.info.important || false
- this.config = []
- if (value.info.config) {
- for (let i = 0; i < this.configList.length; i++) {
- if (this.configList[i].id === value.info.config) {
- this.config.push(this.configList[i])
- }
- }
- }
+ this.config = [value.info.config] || []
this.times = value.info.times ? JSON.parse(value.info.times) : {}
this.repetitiveEvent = this.times.repetitive || false