Skip to content

Commit

Permalink
Merge pull request #1967 from lipoolock/patch-1
Browse files Browse the repository at this point in the history
Need to enforce images list validation
  • Loading branch information
akiran authored Jan 24, 2021
2 parents c2b148b + 2c2fe37 commit cbf2cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inner-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export class InnerSlider extends React.Component {
};
checkImagesLoad = () => {
let images =
(this.list.querySelectorAll &&
(this.list && this.list.querySelectorAll &&
this.list.querySelectorAll(".slick-slide img")) ||
[];
let imagesCount = images.length,
Expand Down

0 comments on commit cbf2cf5

Please sign in to comment.