From ee8dce4466a09603bbfe66a007bf26a21e6f2073 Mon Sep 17 00:00:00 2001 From: lirazyehezkel <61656597+lirazyehezkel@users.noreply.github.com> Date: Tue, 26 Apr 2022 15:40:42 +0300 Subject: [PATCH] Clear entry detailed on workspace change (#1045) --- ui-common/src/components/TrafficViewer/EntryDetailed.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-common/src/components/TrafficViewer/EntryDetailed.tsx b/ui-common/src/components/TrafficViewer/EntryDetailed.tsx index a139e8209..715439ddd 100644 --- a/ui-common/src/components/TrafficViewer/EntryDetailed.tsx +++ b/ui-common/src/components/TrafficViewer/EntryDetailed.tsx @@ -110,8 +110,8 @@ export const EntryDetailed = () => { const [entryData, setEntryData] = useState(null); useEffect(() => { - if (!focusedEntryId) return; - setEntryData(null); + setEntryData(null); + if (!focusedEntryId) return; setIsLoading(true); (async () => { try {