diff --git a/src/utils/Websocket.ts b/src/utils/Websocket.ts index 4303eb32..beb09197 100644 --- a/src/utils/Websocket.ts +++ b/src/utils/Websocket.ts @@ -215,6 +215,8 @@ export const HandleWs = () => { useLayoutEffect(() => { if (!graphs || !graphsMulti) { setPixelGraphs([]) + } else { + setPixelGraphs(Object.keys(virtuals)) } // eslint-disable-next-line react-hooks/exhaustive-deps }, [graphs, graphsMulti])