From b72c956b43880db589a5c78b37eff1e2d1946c9c Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sat, 14 Sep 2024 07:03:35 -0500 Subject: [PATCH] search detail language change --- web/src/components/overlay/detail/SearchDetailDialog.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/overlay/detail/SearchDetailDialog.tsx b/web/src/components/overlay/detail/SearchDetailDialog.tsx index e4651d6dd..441e48df6 100644 --- a/web/src/components/overlay/detail/SearchDetailDialog.tsx +++ b/web/src/components/overlay/detail/SearchDetailDialog.tsx @@ -237,7 +237,7 @@ function ObjectDetailsTab({ const [desc, setDesc] = useState(search?.data.description); // we have to make sure the current selected search item stays in sync - useEffect(() => setDesc(search?.data.description), [search]); + useEffect(() => setDesc(search?.data.description ?? ""), [search]); const formattedDate = useFormattedTimestamp( search?.start_time ?? 0, @@ -351,7 +351,7 @@ function ObjectDetailsTab({