Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: add optional chain operator to fix enterprise check from throwing error

Scott Wilson793a313f1d6e
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`
}
/>