Skip to content

Commit 0cdc545

Browse files
castastrophemwcz
andauthored
Update elements/pfe-jump-links/src/pfe-jump-links.js
Co-authored-by: Michael Clayton <[email protected]>
1 parent 8027b99 commit 0cdc545

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

elements/pfe-jump-links/src/pfe-jump-links.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,7 @@ class PfeJumpLinksPanel extends PFElement {
343343
this.getAttribute("pfe-c-offset") || this.getAttribute("offset");
344344
this.customVar = this.cssVariable("--pfe-jump-links-panel--offset") || 200;
345345
if (
346-
(this.nav && this.nav.hasAttribute("pfe-c-autobuild")) ||
347-
this.nav.hasAttribute("autobuild")
346+
this.nav && (this.nav.hasAttribute("pfe-c-autobuild") || this.nav.hasAttribute("autobuild"))
348347
) {
349348
this.nav._rebuildNav();
350349
}

0 commit comments

Comments
 (0)