use optional chaining
This commit is contained in:
parent
7441218c7f
commit
de072c8b3d
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ export function toggle(el: Element | null, force?: boolean) {
|
|||
|
||||
export function toggleExpandIcon(icon: Element | null) {
|
||||
icon?.classList.toggle('fr-icon-add-line');
|
||||
icon?.classList.toggle('fr-icon-subtract-line');
|
||||
icon?.classList?.toggle('fr-icon-subtract-line');
|
||||
}
|
||||
|
||||
export function enable(
|
||||
|
|
Loading…
Reference in a new issue