Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Mar 28, 2024
1 parent facba54 commit 1bd2fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/navigation/navigation.mjs
Expand Up @@ -35,7 +35,7 @@ export default function Navigation({ swiper, extendParams, on, emit }) {
swiper.el.querySelectorAll(el).length === 1
) {
res = swiper.el.querySelector(el);
} else if (res.length === 1) {
} else if (res && res.length === 1) {
res = res[0];
}
}
Expand Down

0 comments on commit 1bd2fae

Please sign in to comment.