From 2b78249b350a481e897dcb3a985eb8d16c04cb53 Mon Sep 17 00:00:00 2001 From: Matias Chomicki Date: Wed, 17 Sep 2025 16:16:10 +0200 Subject: [PATCH] LogListContext: sync mode only if not empty --- public/app/features/logs/components/panel/LogListContext.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/app/features/logs/components/panel/LogListContext.tsx b/public/app/features/logs/components/panel/LogListContext.tsx index fed6669be90..1c74e122822 100644 --- a/public/app/features/logs/components/panel/LogListContext.tsx +++ b/public/app/features/logs/components/panel/LogListContext.tsx @@ -334,7 +334,9 @@ export const LogListContextProvider = ({ // Sync details mode useEffect(() => { - setDetailsMode(detailsModeProp); + if (detailsModeProp) { + setDetailsMode(detailsModeProp); + } }, [detailsModeProp]); // Sync font size