Skip to content

Commit 7600941

Browse files
committed
Fixes edges
1 parent 493b1b7 commit 7600941

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/projects/ProjectCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default function ProjectCard(props: ProjectCardProps) {
6565
<span className="text-sm text-gray-900 ">{props.project.time}</span>
6666
</>}
6767
</div>}
68-
{props.project.isIntegrationProject && <div className="absolute bottom-0 left-2/4 flex flex-row flex-nowrap gap-x-1 bg-gray-100 px-1 rounded-br rounded-bl" style={{ 'transform': 'translate(-50%' }}>
68+
{props.project.isIntegrationProject && <div className="absolute bottom-0 left-2/4 flex flex-row flex-nowrap gap-x-1 bg-gray-100 px-1 rounded-tr rounded-tl" style={{ 'transform': 'translate(-50%' }}>
6969
<span className="text-sm text-red-500">This is an integration project, please do not delete it unless the integration is deleted</span>
7070
</div>}
7171
{(isAdmin && props.project.status !== ProjectStatus.INIT_SAMPLE_PROJECT) &&

src/components/projects/projectId/settings/ProjectMetaData.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default function ProjectMetaData() {
4545
}, []);
4646

4747
const isIntegrationProject = useMemo(() => {
48-
return allProjects && allProjects.some(p => p.id === project.id && p.isIntegrationProject);
48+
return allProjects && allProjects.find(p => p.id === project.id)?.isIntegrationProject;
4949
}, [allProjects, project.id]);
5050

5151
return (<div>

0 commit comments

Comments
 (0)