From 2351cfc599e99543aab5931d3b0542ab9b0eeaf0 Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Wed, 28 Feb 2024 10:48:22 +0000 Subject: [PATCH] Fix `_unchecked` session removal for arrays Using triple `=== ['_unchecked']` can never return `true` --- lib/session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/session.js b/lib/session.js index 8f5f64beb2..6df539254e 100644 --- a/lib/session.js +++ b/lib/session.js @@ -59,7 +59,7 @@ function storeData (input, data) { let val = input[i] // Delete values when users unselect checkboxes - if (val === '_unchecked' || val === ['_unchecked']) { + if (val === '_unchecked') { delete data[i] continue }