From 122d68ca902a6b1e8a53169966066103dd047501 Mon Sep 17 00:00:00 2001 From: Jeran Date: Mon, 23 Mar 2026 09:52:37 +0100 Subject: [PATCH] Updated GetCurrentArray to use chunkstrides --- src/components/plots/AnalysisWG.tsx | 6 ++---- src/utils/HelperFuncs.ts | 11 +++-------- 2 files changed, 5 insertions(+), 12 deletions(-) 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