Skip to content

Commit 34ff94b

Browse files
authored
Merge pull request #4599 from easyops-cn/steve/v3-no-abort-check-apps
fix(): set noAbortOnRouteChange for installed apps checking
2 parents 4e31bda + 5132da6 commit 34ff94b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

packages/easyops-runtime/src/checkInstalledApps.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ export function preCheckInstalledApps(
2727
if (searchIds.length === 0) {
2828
return;
2929
}
30-
const promise = RuntimeApi_searchMicroAppStandalone({
31-
query: { appId: { $in: searchIds } },
32-
fields: ["appId", "currentVersion", "installStatus"],
33-
}).catch((error) => {
30+
const promise = RuntimeApi_searchMicroAppStandalone(
31+
{
32+
query: { appId: { $in: searchIds } },
33+
fields: ["appId", "currentVersion", "installStatus"],
34+
},
35+
{ noAbortOnRouteChange: true }
36+
).catch((error) => {
3437
// Allow search micro app to fail, and
3538
// make it not crash when the backend service is not updated.
3639
// eslint-disable-next-line no-console

0 commit comments

Comments
 (0)