Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Checking if seciton is valid

rafi9932162f52e00e3
diff --git a/layouts/default.vue b/layouts/default.vue
index 97062fd57..bba31372b 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -259,6 +259,7 @@
let section = document.querySelector(link.hash);
if (
+ section &&
section.offsetTop <= fromTop &&
section.offsetTop + section.offsetHeight > fromTop
) {