Skip to content

Commit 820b846

Browse files
tmlmtAndyScherzinger
authored andcommitted
fix: update() function does not return a Promise
1 parent 3a1f07b commit 820b846

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/settings/src/mixins/AppManagement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,11 @@ export default {
255255
},
256256
update(appId) {
257257
if (this.app?.app_api) {
258-
this.appApiStore.updateApp(appId)
258+
return this.appApiStore.updateApp(appId)
259259
.then(() => { rebuildNavigation() })
260260
.catch((error) => { showError(error) })
261261
} else {
262-
this.$store.dispatch('updateApp', { appId })
262+
return this.$store.dispatch('updateApp', { appId })
263263
.catch((error) => { showError(error) })
264264
.then(() => {
265265
rebuildNavigation()

0 commit comments

Comments
 (0)