Skip to content

Commit

Permalink
fix bug with deletion of email invites
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforestboi committed Jul 24, 2024
1 parent 277af3b commit 9b9e8b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/custom-lists/ui/space-email-invites/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ export default class SpaceEmailInvites extends StatefulUIElement<
this.processEvent(
'deleteEmailInvite',
{
key: invite?.sharedListKey.toString(),
key:
invite?.email,
},
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/custom-lists/ui/space-email-invites/logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default class SpaceEmailInvitesLogic extends UILogic<State, Event> {
emailInvites: {
$set: initNormalizedState({
seedData: emailInvites.data,
getId: (invite) => invite.sharedListKey.toString(),
getId: (invite) => invite.email,
}),
},
emailInvitesLoadState: { $set: 'success' },
Expand Down

0 comments on commit 9b9e8b6

Please sign in to comment.