File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) &&
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments