Skip to content

Commit

Permalink
fix(components): add optional chaining to check for tagName to preven…
Browse files Browse the repository at this point in the history
…t test fail
  • Loading branch information
Manuel Proß committed Jun 11, 2024
1 parent 5f393ed commit f60bf67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class SwirlActionListItem {

icon?.setAttribute("size", smallIcon ? "20" : "24");

if (suffix.tagName === "SWIRL-TAG") return;
if (suffix?.tagName === "SWIRL-TAG") return;

suffix?.setAttribute("size", smallIcon ? "20" : "24");
}
Expand Down

0 comments on commit f60bf67

Please sign in to comment.