Compare commits

...

1 Commits

Author SHA1 Message Date
ahmadshaheer
955aea2733 fix: handle edge case for logs column options menu navigation 2024-12-04 18:35:44 +04:30

View File

@@ -152,6 +152,8 @@ export default function LogsFormatOptionsMenu({
const itemLength = optionsData.length;
if (!optionsData?.length || currentIndex < 0) return;
switch (e.key) {
case 'ArrowUp': {
const newValue = optionsData[Math.max(0, currentIndex - 1)]?.value;