From 793a313f1d6efe5e86f34ed33cdbee88ffe10896 Mon Sep 17 00:00:00 2001 From: Scott Wilson Date: Fri, 24 Oct 2025 19:16:08 -0700 Subject: [PATCH] fix: add optional chain operator to fix enterprise check from throwing error --- .../SecretDashboardPage/components/ActionBar/ActionBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/ActionBar.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/ActionBar.tsx index efee5f313b..46ff873b5c 100644 --- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/ActionBar.tsx +++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/ActionBar.tsx @@ -1281,7 +1281,7 @@ export const ActionBar = ({ subscription.slug === null ? "You can perform this action under an Enterprise license" : `You can perform this action if you switch to Infisical's ${ - popUp.upgradePlan.data.isEnterpriseFeature ? "Enterprise" : "Pro" + popUp.upgradePlan.data?.isEnterpriseFeature ? "Enterprise" : "Pro" } plan` } />