app update: use the props.app directly instead of local copy

this way if the app auto updates in the background, we are showing
the correct state in the view
This commit is contained in:
Girish Ramakrishnan
2025-09-17 11:56:08 +02:00
parent 91840904b6
commit 41932c9127
2 changed files with 12 additions and 34 deletions
-11
View File
@@ -50,17 +50,6 @@ function create() {
if (error || result.status !== 200) return [error || result];
return [null];
},
async checkAppUpdate(id) {
let error, result;
try {
result = await fetcher.post(`${API_ORIGIN}/api/v1/apps/${id}/check_update`, {}, { access_token: accessToken });
} catch (e) {
error = e;
}
if (error || result.status !== 200) return [error || result];
return [null];
},
async update(skipBackup = false) {
let error, result;
try {