From 9e585a1200f61ec33c4a74e9cd001874207679d9 Mon Sep 17 00:00:00 2001 From: davidye007 Date: Sun, 9 Feb 2025 00:45:20 -0800 Subject: [PATCH] fix linting errors --- trails-viz-app/src/components/PartyCharacteristics.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/trails-viz-app/src/components/PartyCharacteristics.vue b/trails-viz-app/src/components/PartyCharacteristics.vue index 7a9e92e..f8f419d 100644 --- a/trails-viz-app/src/components/PartyCharacteristics.vue +++ b/trails-viz-app/src/components/PartyCharacteristics.vue @@ -72,9 +72,9 @@ - +
- Include Total: + Show Total: Total @@ -354,7 +354,7 @@ export default { }; data.forEach((item) => { - const { characteristic, value, year } = item; + const { characteristic, year, counts } = item; if (year === "Total") { if (!this.showTotal) return; } else { @@ -363,9 +363,9 @@ export default { if (!result[characteristic][year]) { result[characteristic][year] = {}; } - Object.keys(item.counts).forEach((cat) => { + Object.keys(counts).forEach((cat) => { result[characteristic][year][cat] = - (result[characteristic][year][cat] || 0) + item.counts[cat]; + (result[characteristic][year][cat] || 0) + counts[cat]; }); });