mirror of https://github.com/istio/istio.io.git
Fix toggleActiveHeader to handle empty banner case (#15930)
This commit is contained in:
parent
93c28e51ed
commit
2f1a6a3f17
|
|
@ -161,7 +161,7 @@ function handleEvents(): void {
|
|||
function toggleActiveHeader(): void {
|
||||
const top = window.scrollY;
|
||||
|
||||
if (!banner) {
|
||||
if (!banner || !banner.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue