From 912cd5d20ab4da0156e5a7baa852cd25df6d0dcc Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Thu, 4 Sep 2025 02:54:53 +0200 Subject: [PATCH] linting --- .../components/VaultPlatformModal.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 d8ad2605c..95ed993e8 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); }}