From 4eb641d474f30bbbfa24200cddbd4ce1b70a11b9 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Wed, 10 Jan 2024 19:15:19 -0700 Subject: [PATCH] Tweak the way the collapse helper works --- module/helpers/detailsExpanded.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/helpers/detailsExpanded.mjs b/module/helpers/detailsExpanded.mjs index bf9ddef..0a277aa 100644 --- a/module/helpers/detailsExpanded.mjs +++ b/module/helpers/detailsExpanded.mjs @@ -7,5 +7,8 @@ * @returns {"open"|null} The HTML insertion indicating the details is expanded */ export function detailsExpanded(expanded, collapseId) { - return expanded.has(collapseId) ? "open" : null; + if (expanded.has(collapseId)) { + return `open`; + } + return ``; }; \ No newline at end of file