Update web/src/views/live/LiveDashboardView.tsx

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
This commit is contained in:
Stavros Kois 2024-08-10 15:39:24 +03:00 committed by GitHub
parent 15c1e6af49
commit 1c0e2e8430
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -269,11 +269,9 @@ export default function LiveDashboardView({
useKeyboardListener(["f"], onKeyboardShortcut); useKeyboardListener(["f"], onKeyboardShortcut);
const handleFullScreenQuery = useCallback( const handleFullScreenQuery = useCallback(
(value: string) => { (value: string) => {
const desiredState = value === "true"; if (!fullscreen) {
if (fullscreen === desiredState) { toggleFullscreen();
return;
} }
toggleFullscreen;
}, },
[fullscreen, toggleFullscreen], [fullscreen, toggleFullscreen],
); );