Clear focusedEntryId state in case of a filter is applied (#482)

This commit is contained in:
M. Mert Yıldıran 2021-11-17 18:20:23 +03:00 committed by GitHub
parent a13fec3dae
commit ad78f1dcd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,6 +101,7 @@ export const TrafficPage: React.FC<TrafficPageProps> = ({setAnalyzeStatus, onTLS
const listEntry = useRef(null);
const openWebSocket = (query) => {
setFocusedEntryId(null);
setEntries([]);
setEntriesBuffer([]);
ws.current = new WebSocket(MizuWebsocketURL);