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);
const handleFullScreenQuery = useCallback(
(value: string) => {
const desiredState = value === "true";
if (fullscreen === desiredState) {
return;
if (!fullscreen) {
toggleFullscreen();
}
toggleFullscreen;
},
[fullscreen, toggleFullscreen],
);