mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix: update() function does not return a Promise
Signed-off-by: Thomas Lamant <tom@tmlmt.com>
This commit is contained in:
parent
58c6a8387b
commit
7436340f4c
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue