Skip to content

Commit

Permalink
fix: Fix "Create Project" button in the project selector not opening …
Browse files Browse the repository at this point in the history
…the project creation modal (#4294)
  • Loading branch information
kyle-ssg authored Jul 12, 2024
1 parent c047233 commit 1f9aecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/web/components/ProjectManageWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import CreateProjectModal from './modals/CreateProject'

type SegmentsPageType = {
router: RouterChildContext['router']
organisationId: string | null
organisationId: number | null
}

const ProjectManageWidget: FC<SegmentsPageType> = ({
Expand All @@ -29,7 +29,7 @@ const ProjectManageWidget: FC<SegmentsPageType> = ({
const create = Utils.fromParam()?.create
const { data: organisations } = useGetOrganisationsQuery({})
const organisation = useMemo(
() => organisations?.results?.find((v) => `${v.id}` === organisationId),
() => organisations?.results?.find((v) => v.id === organisationId),
[organisations, organisationId],
)

Expand Down

0 comments on commit 1f9aecc

Please sign in to comment.