fix(mindspace): do not block home on job summary
This commit is contained in:
@@ -1030,7 +1030,11 @@ export function MindSpaceView({
|
|||||||
setSpace(nextSpace);
|
setSpace(nextSpace);
|
||||||
setPages(recentPagesResult.items);
|
setPages(recentPagesResult.items);
|
||||||
setRecentPagesTotal(recentPagesResult.page.total ?? recentPagesResult.items.length);
|
setRecentPagesTotal(recentPagesResult.page.total ?? recentPagesResult.items.length);
|
||||||
await refreshAgentJobsSummary();
|
// The agent-job count is supplementary. A slow job store must not keep the
|
||||||
|
// already-loaded MindSpace home screen in its global loading state.
|
||||||
|
void refreshAgentJobsSummary().catch(() => {
|
||||||
|
setAgentJobsTotal(0);
|
||||||
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
setError(err instanceof Error ? err.message : '空间加载失败');
|
setError(err instanceof Error ? err.message : '空间加载失败');
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user