From 751de141d53f5d5ce5ac62505a6b27512021ee99 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 7 Sep 2025 20:19:40 -0500 Subject: [PATCH] Fix model selection type in Frigate+ settings pane (#19952) * model type does not need to match config model type As long as a model is supported by a detector, it should be available in the list * fix missing semicolon the web linter was complaining --- web/src/components/player/HlsVideoPlayer.tsx | 2 +- web/src/views/settings/FrigatePlusSettingsView.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/web/src/components/player/HlsVideoPlayer.tsx b/web/src/components/player/HlsVideoPlayer.tsx index 93f1da702..4b1bfe5ef 100644 --- a/web/src/components/player/HlsVideoPlayer.tsx +++ b/web/src/components/player/HlsVideoPlayer.tsx @@ -139,7 +139,7 @@ export default function HlsVideoPlayer({ if (hlsRef.current) { hlsRef.current.destroy(); } - } + }; }, [videoRef, hlsRef, useHlsCompat, currentSource]); // state handling diff --git a/web/src/views/settings/FrigatePlusSettingsView.tsx b/web/src/views/settings/FrigatePlusSettingsView.tsx index e721aa13c..fb9a28d16 100644 --- a/web/src/views/settings/FrigatePlusSettingsView.tsx +++ b/web/src/views/settings/FrigatePlusSettingsView.tsx @@ -390,7 +390,6 @@ export default function FrigatePlusSettingsView({ className="cursor-pointer" value={id} disabled={ - model.type != config.model.model_type || !model.supportedDetectors.includes( Object.values(config.detectors)[0] .type,