diff --git a/packages/web/src/utility/TableControl.js b/packages/web/src/utility/TableControl.js index 521de062..7a1750d8 100644 --- a/packages/web/src/utility/TableControl.js +++ b/packages/web/src/utility/TableControl.js @@ -70,7 +70,7 @@ export default function TableControl({ setSelectedIndex((i) => Math.max(0, i - 1)); } if (onKeyDown) onKeyDown(event); - }, []); + }, [setSelectedIndex, rows]); return (