Tweak the way the collapse helper works

This commit is contained in:
Oliver-Akins 2024-01-10 19:15:19 -07:00
parent 83891a5ce0
commit 4eb641d474

View file

@ -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 ``;
};