fix: avoid stuck Apps loading during catalog refresh

maintainer edit: Empty cache-only CLI Apps payloads should still update the UI while the background catalog refresh is pending, otherwise cold catalog failures leave Settings stuck on the spinner.
This commit is contained in:
chengyongru authored and Xubin Ren committed 2026-06-22 17:14:13 +08:00
1 parent 1cd5a0e029
commit 2216405821
2 files changed
+27 -1

No files matched your search

@@ -703,7 +703,6 @@ export function SettingsView({
if (cancelled) return;
if (payload.catalog_refresh_pending) {
retry = window.setTimeout(() => loadCliApps(false), 2000);
if (payload.apps.length === 0) return;
}
setCliApps(payload);
setCliAppsError(null);