Replace existence check with optional chaining (#5742)

This commit is contained in:
Peter Santos
2024-08-17 02:58:01 -04:00
committed by GitHub
parent cc22fbc042
commit 1da9b548ac
10 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ const scrollerFactory = function (frame, options) {
immediate = true;
}
if (!immediate && o.skipSlideToWhenVisible && fullItemPos && fullItemPos.isVisible) {
if (!immediate && o.skipSlideToWhenVisible && fullItemPos?.isVisible) {
return;
}