Avoid multiple reloads

This commit is contained in:
Adria Navarro 2023-12-19 12:27:26 +01:00
parent ee40434223
commit 4e48d1d66e
1 changed files with 4 additions and 2 deletions

View File

@ -78,7 +78,9 @@ export const API = createAPIClient({
console.warn(`[Client] HTTP ${status} on ${method}:${url}\n\t${message}`)
},
onMigrationDetected: appId => {
// We will force a reload, that will display the updating screen until the migration is running
window.location.reload()
if (!window.MIGRATING_APP) {
// We will force a reload, that will display the updating screen until the migration is running
window.location.reload()
}
},
})