mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-11 22:45:18 +00:00
fix(keyboard-nav): ensure correct type for shortcut keys in navigation
This commit is contained in:
@@ -56,7 +56,7 @@ export function UseKeyboardNavForApplications() {
|
|||||||
setModPressed(false);
|
setModPressed(false);
|
||||||
|
|
||||||
if (key in SHORTCUTS) {
|
if (key in SHORTCUTS) {
|
||||||
const tab = SHORTCUTS[key];
|
const tab = SHORTCUTS[key as keyof typeof SHORTCUTS];
|
||||||
router.push(
|
router.push(
|
||||||
`${pathname}?${updateSearchParam("tab", tab.toLowerCase())}`,
|
`${pathname}?${updateSearchParam("tab", tab.toLowerCase())}`,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user