diff --git a/src/app/base/components/MachineSelectTable/MachineSelectTable.tsx b/src/app/base/components/MachineSelectTable/MachineSelectTable.tsx index 0f6969ce91..8fbd61e74e 100644 --- a/src/app/base/components/MachineSelectTable/MachineSelectTable.tsx +++ b/src/app/base/components/MachineSelectTable/MachineSelectTable.tsx @@ -1,3 +1,4 @@ +import type { KeyboardEvent } from "react"; import { useEffect } from "react"; import { MainTable } from "@canonical/react-components"; @@ -73,7 +74,7 @@ const generateRows = ( ], "data-testid": "machine-select-row", onClick: () => onRowClick(machine), - onKeyPress: (e: KeyboardEvent) => { + onKeyPress: (e: KeyboardEvent) => { if (e.key === "Enter") { e.preventDefault(); onRowClick(machine);