From 08da4e6b621a2c3abc5794db6d22347fc49128d3 Mon Sep 17 00:00:00 2001 From: William Baker Date: Thu, 13 Jun 2024 18:58:46 -0400 Subject: [PATCH] fix limit feature --- src/index.civet | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.civet b/src/index.civet index aeb2c3d..2fbb00b 100644 --- a/src/index.civet +++ b/src/index.civet @@ -255,9 +255,9 @@ installLimitListener := (name: 'characters' | 'karts' | 'wheels' | 'gliders') => currMenu = name // @ts-ignore shut up - totalNames: string[] := data[name].flatMap &[name] + totalNames: string[] := currData[name].flatMap &[name] // @ts-ignore shut up - indices := data[name].flatMap (el, i) => Array(el[name].#).fill i + indices := currData[name].flatMap (el, i) => Array(el[name].#).fill i // @ts-ignore shut up includedNames: string[] := limitedData[name].flatMap &[name] @@ -272,7 +272,7 @@ installLimitListener := (name: 'characters' | 'karts' | 'wheels' | 'gliders') => menu.querySelectorAll 'input[type="checkbox"]' .forEach .checked = true // @ts-ignore It's just not correlating the LHS (&) with the RHS (|) - limitedData[name] = structuredClone data[name] + limitedData[name] = structuredClone currData[name] selectedCount = total else menu.querySelectorAll 'input[type="checkbox"]'