fix: `update()` function does not return a Promise

Signed-off-by: Thomas Lamant <tom@tmlmt.com>
pull/56923/head
Thomas Lamant 2 months ago committed by nextcloud-command
parent 58c6a8387b
commit 7436340f4c
  1. 4
      apps/settings/src/mixins/AppManagement.js

@ -255,11 +255,11 @@ export default {
},
update(appId) {
if (this.app?.app_api) {
this.appApiStore.updateApp(appId)
return this.appApiStore.updateApp(appId)
.then(() => { rebuildNavigation() })
.catch((error) => { showError(error) })
} else {
this.$store.dispatch('updateApp', { appId })
return this.$store.dispatch('updateApp', { appId })
.catch((error) => { showError(error) })
.then(() => {
rebuildNavigation()

Loading…
Cancel
Save