From 49590272bb7d67c4170b3a33fd6e2649214cd8c8 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 30 Oct 2024 06:10:35 -0500 Subject: [PATCH] remove video tab if tracked object has no clip --- web/src/components/overlay/detail/SearchDetailDialog.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/src/components/overlay/detail/SearchDetailDialog.tsx b/web/src/components/overlay/detail/SearchDetailDialog.tsx index 9159813f4..b364e2c82 100644 --- a/web/src/components/overlay/detail/SearchDetailDialog.tsx +++ b/web/src/components/overlay/detail/SearchDetailDialog.tsx @@ -141,6 +141,11 @@ export default function SearchDetailDialog({ views.splice(index, 1); } + if (!search.has_clip) { + const index = views.indexOf("video"); + views.splice(index, 1); + } + if (search.data.type != "object") { const index = views.indexOf("object lifecycle"); views.splice(index, 1);