Skip to content

Commit

Permalink
fix: app store binding lost after theme upgraded
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <[email protected]>
  • Loading branch information
ruibaby committed Oct 7, 2023
1 parent af0b679 commit 87dc672
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions console/src/composables/use-app-download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export function useAppDownload(app: Ref<ApplicationSearchResult | undefined>) {
});

if (await checkPluginUpgradeStatus(matchedPlugin.value, app.value?.latestRelease?.spec.version)) {
await handleBindingPluginAppId({ plugin: upgradedPlugin });
return upgradedPlugin;
}
return;
Expand All @@ -190,6 +191,7 @@ export function useAppDownload(app: Ref<ApplicationSearchResult | undefined>) {
});

if (await checkThemeUpgradeStatus(matchedTheme.value, app.value?.latestRelease?.spec.version)) {
await handleBindingThemeAppId({ theme: upgradedTheme });
return upgradedTheme;
}
return;
Expand Down

0 comments on commit 87dc672

Please sign in to comment.