fix: allow the first activity to be reporting (#8)

This commit is contained in:
Henry Li
2025-05-09 10:32:49 +08:00
committed by GitHub
parent 8cb4c3b7cd
commit 9213729ef5
2 changed files with 18 additions and 20 deletions

View File

@@ -65,8 +65,10 @@ export function ResearchBlock({
// When the research id changes, set the active tab to activities
useEffect(() => {
setActiveTab("activities");
}, [researchId]);
if (!hasReport) {
setActiveTab("activities");
}
}, [hasReport, researchId]);
return (
<div className={cn("h-full w-full", className)}>