mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 14:47:40 +03:00
fix: guard against null key in camera group keyboard shortcut handler
https://claude.ai/code/session_018vH9fGSi5McLLa47GEiZJC
This commit is contained in:
parent
3043aa4d5b
commit
91a6a650f3
@ -68,7 +68,7 @@ function Live() {
|
||||
useKeyboardListener(
|
||||
["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"],
|
||||
(key, modifiers) => {
|
||||
if (!modifiers.down || !config || selectedCameraName) {
|
||||
if (!modifiers.down || !config || !key || selectedCameraName) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user