From c4a80590a1117cab61bed92175b4957fdc47f40d Mon Sep 17 00:00:00 2001 From: Jordan Knott Date: Wed, 23 Dec 2020 13:21:06 -0600 Subject: [PATCH] fix: fix issue where personal projects did not show up in Project Finder --- frontend/src/App/TopNavbar.tsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/frontend/src/App/TopNavbar.tsx b/frontend/src/App/TopNavbar.tsx index 7421dad..377eaed 100644 --- a/frontend/src/App/TopNavbar.tsx +++ b/frontend/src/App/TopNavbar.tsx @@ -134,6 +134,7 @@ const ProjectFinder = () => { } if (data) { const { projects, teams } = data; + const personalProjects = data.projects.filter(p => p.team === null); const projectTeams = teams.map(team => { return { id: team.id, @@ -143,6 +144,22 @@ const ProjectFinder = () => { }); return ( <> + + Personal + + {personalProjects.map((project, idx) => ( + + + + + + {project.name} + + + + ))} + + {projectTeams.map(team => ( {team.name}