diff --git a/src/components/CreateTeam/RoadmapSelector.tsx b/src/components/CreateTeam/RoadmapSelector.tsx index b819d589c..96860b062 100644 --- a/src/components/CreateTeam/RoadmapSelector.tsx +++ b/src/components/CreateTeam/RoadmapSelector.tsx @@ -58,7 +58,8 @@ export function RoadmapSelector(props: RoadmapSelectorProps) { pageProgressMessage.set(`Deleting resource`); const { error, response } = await httpPut( - `${import.meta.env.PUBLIC_API_URL}/v1-delete-team-resource-config/${team._id + `${import.meta.env.PUBLIC_API_URL}/v1-delete-team-resource-config/${ + team._id }`, { resourceId: roadmapId, @@ -89,7 +90,8 @@ export function RoadmapSelector(props: RoadmapSelectorProps) { pageProgressMessage.set(`Adding roadmap to team`); const { error, response } = await httpPut( - `${import.meta.env.PUBLIC_API_URL}/v1-update-team-resource-config/${team._id + `${import.meta.env.PUBLIC_API_URL}/v1-update-team-resource-config/${ + team._id }`, { teamId: team._id, @@ -138,8 +140,7 @@ export function RoadmapSelector(props: RoadmapSelectorProps) { }); }} onRoadmapRemove={(roadmapId) => { - onRemove(roadmapId).finally(() => { - }); + onRemove(roadmapId).finally(() => {}); }} /> )} @@ -154,14 +155,10 @@ export function RoadmapSelector(props: RoadmapSelectorProps) {

-
- ) - }) - } - { - searchResults.length === 0 && ( -
- No roadmaps found +
+ {searchResults.map((roadmap) => { + const isSelected = teamResourceConfig.find( + (r) => r.resourceId === roadmap.id + ); + return ( +
+ {roadmap.title} +
- ) - } + ); + })} + {searchResults.length === 0 && ( +
No roadmaps found
+ )}
-
+