From 30f51b53648cdb804cce48160995cd95e9ceb2b1 Mon Sep 17 00:00:00 2001 From: Andrej Date: Tue, 2 Sep 2025 15:57:39 +0200 Subject: [PATCH] Fix automations settings page [SCI-12322] --- app/javascript/vue/team_automations/container.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/javascript/vue/team_automations/container.vue b/app/javascript/vue/team_automations/container.vue index 55abcdb0d..9eab1007b 100644 --- a/app/javascript/vue/team_automations/container.vue +++ b/app/javascript/vue/team_automations/container.vue @@ -78,7 +78,12 @@ export default { loadTeam() { axios.get(this.teamUrl).then((response) => { this.teamObject = response.data; - this.teamAutomationSettings = { ...this.emptySettings, ...this.teamObject.teamSettings?.team_automation_settings }; + this.teamAutomationSettings = Object.fromEntries( + Object.keys(this.emptySettings).map(key => [ + key, + { ...this.emptySettings[key], ...this.teamObject.teamSettings?.team_automation_settings[key] } + ]) + ); }); }, setTeamAutomationsSettings() {