[WEB-4339] fix: projects dropdown shows all projects (#7238)

* fix: projects drop only shows joined project

* refactor: removed unused things from header
This commit is contained in:
JayashTripathy 2025-06-19 15:57:19 +05:30 committed by GitHub
parent d65f0e264e
commit 171099667e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 45 deletions

View file

@ -9,7 +9,7 @@ import { ProjectSelect } from "./select/project";
const AnalyticsFilterActions = observer(() => {
const { selectedProjects, selectedDuration, updateSelectedProjects, updateSelectedDuration } = useAnalytics();
const { workspaceProjectIds } = useProject();
const { joinedProjectIds } = useProject();
return (
<div className="flex items-center justify-end gap-2">
<ProjectSelect
@ -17,7 +17,7 @@ const AnalyticsFilterActions = observer(() => {
onChange={(val) => {
updateSelectedProjects(val ?? []);
}}
projectIds={workspaceProjectIds}
projectIds={joinedProjectIds}
/>
{/* <DurationDropdown
buttonVariant="border-with-text"