diff --git a/app/web/src/pages/Data.jsx b/app/web/src/pages/Data.jsx index fd4ed52..d1d8290 100644 --- a/app/web/src/pages/Data.jsx +++ b/app/web/src/pages/Data.jsx @@ -45,9 +45,10 @@ export default function Data({ selection, choose, analysis, setAnalysis }) { // all; otherwise the detectors run again without the others) const [source, setSource] = useState("detectors"), [families, setFamilies] = useState(DETECTED), [targets, setTargets] = useState(""); const [focus, setFocus] = useState(false); // with an event open, the plots show only its sensors + const [hidden, setHidden] = useState([]); // the targets removed from the plots (the detectors still read them) const { station, start, end } = selection; useEffect(() => { - setData(null); setTargets(""); + setData(null); setTargets(""); setHidden([]); if (!station) return; setLoading(true); call(`/api/curves?${new URLSearchParams({ station, start, end })}`).then(d => { setData(d); setLoading(false); }); @@ -66,8 +67,9 @@ export default function Data({ selection, choose, analysis, setAnalysis }) { {loading && } + {data &&