File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class LazyLoadImage extends React.Component {
4646 return < img onLoad = { this . onImageLoad ( ) } { ...imgProps } /> ;
4747 }
4848
49- getLazyLoadImage ( image ) {
49+ getLazyLoadImage ( ) {
5050 const {
5151 beforeLoad,
5252 className,
@@ -77,7 +77,7 @@ class LazyLoadImage extends React.Component {
7777 visibleByDefault = { visibleByDefault }
7878 width = { width }
7979 >
80- { image }
80+ { this . getImg ( ) }
8181 </ LazyLoadComponent >
8282 ) ;
8383 }
@@ -123,8 +123,7 @@ class LazyLoadImage extends React.Component {
123123 render ( ) {
124124 const { effect, placeholderSrc, visibleByDefault } = this . props ;
125125
126- const image = this . getImg ( ) ;
127- const lazyLoadImage = this . getLazyLoadImage ( image ) ;
126+ const lazyLoadImage = this . getLazyLoadImage ( ) ;
128127
129128 if ( ( ! effect && ! placeholderSrc ) || visibleByDefault ) {
130129 return lazyLoadImage ;
You can’t perform that action at this time.
0 commit comments