From ac57af70dab3e121680668864ee850c3e4df1629 Mon Sep 17 00:00:00 2001 From: Dianliang233 Date: Wed, 17 Jan 2024 19:46:40 +0800 Subject: [PATCH] Fix total --- src/tools/blockDistribution/App.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/blockDistribution/App.vue b/src/tools/blockDistribution/App.vue index d84824a2..90ea2609 100644 --- a/src/tools/blockDistribution/App.vue +++ b/src/tools/blockDistribution/App.vue @@ -71,7 +71,8 @@ function plot( const marginLeft = 60 const totalPoints: Block[] = [] - if (blockMapFiltered.length > 1 && showTotal) { + + if (enabledBlocks.value.length > 1 && showTotal) { // Also add a group for the total count. const total = [] for (let i = domain[0]; i <= domain[1]; i++) {