Skip to content

Commit

Permalink
Merge pull request #49343 from nextcloud/fix/ai-settings
Browse files Browse the repository at this point in the history
fix(settings): Add nextTick to saveChanges
  • Loading branch information
nickvergessen authored Nov 18, 2024
2 parents 8995272 + 7a4cd42 commit 4b769f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apps/settings/src/components/AdminAI.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions dist/settings-vue-settings-admin-ai.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/settings-vue-settings-admin-ai.js.map

Large diffs are not rendered by default.

0 comments on commit 4b769f6

Please sign in to comment.