Skip to content

Commit

Permalink
fix: app store binding lost after theme upgraded (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby authored Oct 9, 2023
1 parent af0b679 commit c5f5888
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 c5f5888

Please sign in to comment.