diff --git a/utopia-remix/app/routes/projects.tsx b/utopia-remix/app/routes/projects.tsx index 0b5f1f57afc4..d0d224d180c1 100644 --- a/utopia-remix/app/routes/projects.tsx +++ b/utopia-remix/app/routes/projects.tsx @@ -454,40 +454,49 @@ const CategoryTrashActions = React.memo(({ projects }: { projects: ProjectWithou }) CategoryTrashActions.displayName = 'CategoryTrashActions' -const ProjectCards = React.memo(({ projects }: { projects: ProjectWithoutContent[] }) => { - const selectedProjectId = useProjectsStore((store) => store.selectedProjectId) - const setSelectedProjectId = useProjectsStore((store) => store.setSelectedProjectId) +const ProjectCards = React.memo( + ({ + projects, + collaborators, + }: { + projects: ProjectWithoutContent[] + collaborators: CollaboratorsByProject + }) => { + const selectedProjectId = useProjectsStore((store) => store.selectedProjectId) + const setSelectedProjectId = useProjectsStore((store) => store.setSelectedProjectId) - const handleProjectSelect = React.useCallback( - (project: ProjectWithoutContent) => - setSelectedProjectId(project.proj_id === selectedProjectId ? null : project.proj_id), - [setSelectedProjectId, selectedProjectId], - ) + const handleProjectSelect = React.useCallback( + (project: ProjectWithoutContent) => + setSelectedProjectId(project.proj_id === selectedProjectId ? null : project.proj_id), + [setSelectedProjectId, selectedProjectId], + ) - return ( -