From 58161f38dfc551754a3cac8826fa4f0bff279f92 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Mon, 18 Nov 2024 13:04:47 +0100 Subject: [PATCH] fix(settings): Add nextTick to saveChanges to alleviate race condition fixes #49335 Signed-off-by: Marcel Klehr --- apps/settings/src/components/AdminAI.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/settings/src/components/AdminAI.vue b/apps/settings/src/components/AdminAI.vue index 28fdd7830d7..557b4e23067 100644 --- a/apps/settings/src/components/AdminAI.vue +++ b/apps/settings/src/components/AdminAI.vue @@ -112,7 +112,7 @@ import DragVerticalIcon from 'vue-material-design-icons/DragVertical.vue' import ArrowDownIcon from 'vue-material-design-icons/ArrowDown.vue' import ArrowUpIcon from 'vue-material-design-icons/ArrowUp.vue' import { loadState } from '@nextcloud/initial-state' - +import { nextTick } from 'vue' import { generateUrl } from '@nextcloud/router' export default { @@ -185,6 +185,7 @@ export default { }, async saveChanges() { this.loading = true + await nextTick() const data = { settings: this.settings } try { await axios.put(generateUrl('/settings/api/admin/ai'), data) -- 2.39.5