Skip to content

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

linting

Daniel Hougaard912cd5d20ab4
diff --git a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultPlatformModal.tsx b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultPlatformModal.tsx
index d8ad2605cf..95ed993e89 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultPlatformModal.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ExternalMigrationsTab/components/VaultPlatformModal.tsx
@@ -265,9 +265,13 @@ export const VaultPlatformModal = ({ onClose }: Props) => {
"!cursor-not-allowed !border-mineshaft-600 !bg-mineshaft-600 !opacity-40"
)}
onClick={() => {
- if (el.isCustom && !isCustomMigrationAvailable?.data?.enabled) {
- return;
- }
+ if (el.isCustom && !isCustomMigrationAvailable?.data?.enabled) return;
+
+ field.onChange(el.value);
+ }}
+ onKeyDown={(e) => {
+ if (e.key !== "Enter") return;
+ if (el.isCustom && !isCustomMigrationAvailable?.data?.enabled) return;
field.onChange(el.value);
}}