diff --git a/src/components/plots/AnalysisWG.tsx b/src/components/plots/AnalysisWG.tsx index a0e48d0c..939e690c 100644 --- a/src/components/plots/AnalysisWG.tsx +++ b/src/components/plots/AnalysisWG.tsx @@ -69,14 +69,12 @@ const AnalysisWG = ({ setTexture, }: { setTexture: React.Dispatch { if (!plotOn){ return } - const dataArray = GetCurrentArray(analysisStore); // Guard clauses: exit if not triggered, no operation is selected, or data is invalid. - if (!operation || dataArray.length <= 1) { + if (!operation) { return; } const executeAnalysis = async () => { @@ -100,7 +98,7 @@ const AnalysisWG = ({ setTexture, }: { setTexture: React.Dispatch