diff --git a/frontend/src/scenes/settings/organization/inviteLogic.ts b/frontend/src/scenes/settings/organization/inviteLogic.ts index 0dabd3ec32807..5f6b05729d9d8 100644 --- a/frontend/src/scenes/settings/organization/inviteLogic.ts +++ b/frontend/src/scenes/settings/organization/inviteLogic.ts @@ -62,7 +62,9 @@ export const inviteLogic = kea([ [] as OrganizationInviteType[], { loadInvites: async () => { - return (await api.get('api/organizations/@current/invites/')).results + return organizationLogic.values.currentOrganization + ? (await api.get('api/organizations/@current/invites/')).results + : [] }, deleteInvite: async (invite: OrganizationInviteType) => { await api.delete(`api/organizations/@current/invites/${invite.id}/`)