]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(settings): Add nextTick to saveChanges
authorMarcel Klehr <mklehr@gmx.net>
Mon, 18 Nov 2024 12:04:47 +0000 (13:04 +0100)
committerMarcel Klehr <mklehr@gmx.net>
Mon, 18 Nov 2024 17:08:28 +0000 (18:08 +0100)
to alleviate race condition

fixes #49335

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
apps/settings/src/components/AdminAI.vue

index 28fdd7830d757bd7eb3a972a5f18367aa851ac16..557b4e23067db6e10daeaac94a53604ba7fb7b41 100644 (file)
@@ -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)