From 5220f10f370fa91f4c2a357d1fdffcc60ce7615a Mon Sep 17 00:00:00 2001 From: yaoweiprc <6896642+yaoweiprc@users.noreply.github.com> Date: Fri, 25 Oct 2024 16:04:20 +0800 Subject: [PATCH] fix https://github.com/Kong/insomnia/issues/8121 --- .vscode/settings.json | 3 +++ .../src/ui/components/modals/invite-modal/invite-modal.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 04db5bc0f13..30fabc7dcba 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -17,7 +17,10 @@ }, "cSpell.words": [ "Dismissable", + "getinsomnia", "inso", + "libcurl", + "svgr", "xmark" ], } diff --git a/packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx b/packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx index debc52ac842..11a9a921ca7 100644 --- a/packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx +++ b/packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx @@ -266,7 +266,7 @@ export const InviteModalContainer: FC<{ const [currentUserAccountId, setCurrentUserAccountId] = useState(''); const [currentOrgInfo, setCurrentOrgInfo] = useState(null); - const isCurrentUserOrganizationOwner = currentUserAccountId === currentOrgInfo?.metadata.ownerAccountId; + const isCurrentUserOrganizationOwner = currentUserAccountId === currentOrgInfo?.metadata?.ownerAccountId; function getBaseInfo(organizationId: string) { return Promise.all([