Skip to content

Commit

Permalink
fix: Invitation list twice in the Members view
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCizmar authored and stepan662 committed Nov 14, 2022
1 parent ada6acc commit d412abd
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions webapp/src/views/projects/members/ProjectMembersView.tsx
Expand Up @@ -8,7 +8,6 @@ import { translatedPermissionType } from 'tg.fixtures/translatePermissionFile';
import { useProject } from 'tg.hooks/useProject';
import { useApiQuery } from 'tg.service/http/useQueryApi';
import { ProjectLanguagesProvider } from 'tg.hooks/ProjectLanguagesProvider';
import { SimpleList } from 'tg.component/common/list/SimpleList';
import { useGlobalLoading } from 'tg.component/GlobalLoading';
import { MemberItem } from './component/MemberItem';
import { InviteDialog } from './component/InviteDialog';
Expand Down Expand Up @@ -51,8 +50,6 @@ export const ProjectMembersView: FunctionComponent = () => {
true
);

const invitations = invitationsLoadable.data?._embedded?.invitations;

useGlobalLoading(invitationsLoadable.isFetching);

return (
Expand Down Expand Up @@ -112,12 +109,6 @@ export const ProjectMembersView: FunctionComponent = () => {
}
/>

{invitations?.length && (
<SimpleList
data={invitations}
renderItem={(i) => <InvitationItem invitation={i} />}
/>
)}
<InviteDialog onClose={() => setInviteOpen(false)} open={inviteOpen} />

<Box mt={4} />
Expand Down

0 comments on commit d412abd

Please sign in to comment.