@@ -8,7 +8,6 @@ import { useOrganizationsForUserQuery } from '@helpwave/api-services/mutations/u
8
8
import type { OrganizationDTO } from '@helpwave/api-services/types/users/organizations'
9
9
import { ColumnTitle } from '../ColumnTitle'
10
10
import { OrganizationCard } from '../cards/OrganizationCard'
11
- import { AddCard } from '../cards/AddCard'
12
11
import { OrganizationContext } from '@/pages/organizations'
13
12
import clsx from 'clsx'
14
13
@@ -50,7 +49,9 @@ export const OrganizationDisplay = ({
50
49
const { organizations : tokenOrganizations } = useAuth ( )
51
50
const { fakeTokenEnable } = getAPIServiceConfig ( )
52
51
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 ) )
54
55
55
56
const usedSelectedId = selectedOrganizationId ?? context . state . organizationId
56
57
return (
@@ -68,11 +69,15 @@ export const OrganizationDisplay = ({
68
69
} }
69
70
/>
70
71
) ) }
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
+ }
76
81
</ div >
77
82
</ div >
78
83
)
0 commit comments