fix: update() function does not return a Promise

Signed-off-by: Thomas Lamant <tom@tmlmt.com>
This commit is contained in:
Thomas Lamant 2025-11-18 14:37:45 +01:00 committed by nextcloud-command
parent 58c6a8387b
commit 7436340f4c

View file

@ -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()