From 81ca1da13d7dc961b7483fff53eace26f11eec47 Mon Sep 17 00:00:00 2001 From: ZhaiSoul <842607283@qq.com> Date: Sat, 25 Oct 2025 00:31:29 +0800 Subject: [PATCH] fix: fix variable error --- web/src/components/timeline/DetailStream.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/src/components/timeline/DetailStream.tsx b/web/src/components/timeline/DetailStream.tsx index 65659bd90..f51db1e2b 100644 --- a/web/src/components/timeline/DetailStream.tsx +++ b/web/src/components/timeline/DetailStream.tsx @@ -525,11 +525,10 @@ function LifecycleItem({ const { t } = useTranslation("views/events"); const { data: config } = useSWR("config"); - - event.data.zones_friendly_names = event?.data?.zones?.map((zone) => { + item.data.zones_friendly_names = item?.data?.zones?.map((zone) => { return resolveZoneName(config, zone); }); - + const aspectRatio = useMemo(() => { if (!config || !item?.camera) { return 16 / 9;