fix(dashboard): guard taskIdIntegrity access in health banner
Optional-chain `taskIdIntegrity` so the project view doesn't crash with `undefined is not an object (evaluating 'taskIdIntegrity.status')` when the dashboard health response omits the field (e.g. against an older server from before FN-4192). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1624,7 +1624,7 @@ function AppInner() {
|
||||
onDismiss={dismissUpdateBanner}
|
||||
/>
|
||||
)}
|
||||
{viewMode === "project" && currentProject && dashboardHealth?.taskIdIntegrity.status === "anomaly" && dashboardHealth.taskIdIntegrity.recommendedAction && (
|
||||
{viewMode === "project" && currentProject && dashboardHealth?.taskIdIntegrity?.status === "anomaly" && dashboardHealth.taskIdIntegrity.recommendedAction && (
|
||||
<TaskIdIntegrityBanner
|
||||
report={dashboardHealth.taskIdIntegrity}
|
||||
recommendedAction={dashboardHealth.taskIdIntegrity.recommendedAction}
|
||||
|
||||
Reference in New Issue
Block a user