Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioCastigliano committed Oct 28, 2024
1 parent fc123c9 commit 57259a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class SbbPearlChainLegElement extends LitElement {

//We need to update parent pearl-chain so that following leg can be styled properly.
if (_changedProperties.has('arrivalSkipped')) {
const parentPearlChain = this.closest('sbb-pearl-chain');
const parentPearlChain = this.closest?.('sbb-pearl-chain');
if (!parentPearlChain) {
return;
}
Expand Down

0 comments on commit 57259a2

Please sign in to comment.