Tweak the way the collapse helper works
This commit is contained in:
parent
83891a5ce0
commit
4eb641d474
1 changed files with 4 additions and 1 deletions
|
|
@ -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 ``;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue