@@ -8,7 +8,6 @@ import { useOrganizationsForUserQuery } from '@helpwave/api-services/mutations/u
88import type { OrganizationDTO } from '@helpwave/api-services/types/users/organizations'
99import { ColumnTitle } from '../ColumnTitle'
1010import { OrganizationCard } from '../cards/OrganizationCard'
11- import { AddCard } from '../cards/AddCard'
1211import { OrganizationContext } from '@/pages/organizations'
1312import clsx from 'clsx'
1413
@@ -50,7 +49,9 @@ export const OrganizationDisplay = ({
5049 const { organizations : tokenOrganizations } = useAuth ( )
5150 const { fakeTokenEnable } = getAPIServiceConfig ( )
5251
53- usedOrganizations = usedOrganizations . filter ( ( organization ) => fakeTokenEnable || tokenOrganizations . includes ( organization . id ) )
52+ usedOrganizations = usedOrganizations
53+ . filter ( ( organization ) => fakeTokenEnable || tokenOrganizations . includes ( organization . id ) )
54+ . filter ( ( organization ) => tokenOrganizations . includes ( organization . id ) )
5455
5556 const usedSelectedId = selectedOrganizationId ?? context . state . organizationId
5657 return (
@@ -68,11 +69,15 @@ export const OrganizationDisplay = ({
6869 } }
6970 />
7071 ) ) }
71- < AddCard
72- text = { translation . addOrganization }
73- onClick = { ( ) => context . updateContext ( { ...context . state , organizationId : '' } ) }
74- className = { clsx ( 'h-full' , { 'border-primary border-solid' : usedSelectedId === '' } ) }
75- />
72+ {
73+ /* Show again when multi organization should be re-enabled
74+ <AddCard
75+ text={translation.addOrganization}
76+ onClick={() => context.updateContext({ ...context.state, organizationId: '' })}
77+ className={clsx('h-full', { 'border-primary border-solid': usedSelectedId === '' })}
78+ />
79+ */
80+ }
7681 </ div >
7782 </ div >
7883 )
0 commit comments