Conditionally call loadCheck if lazyLoader is present
This commit is contained in:
parent
94749a45b7
commit
ae36ee6a14
|
@ -73,7 +73,7 @@ const PARTICIPANTS_ROW_COUNT = 7;
|
|||
|
||||
$(".js-participants-hidden").toggle();
|
||||
|
||||
gl.lazyLoader.loadCheck();
|
||||
if (gl.lazyLoader) gl.lazyLoader.loadCheck();
|
||||
};
|
||||
|
||||
return IssuableContext;
|
||||
|
|
|
@ -47,8 +47,7 @@ import Cookies from 'js-cookie';
|
|||
if (!triggered) {
|
||||
Cookies.set("collapsed_gutter", $('.right-sidebar').hasClass('right-sidebar-collapsed'));
|
||||
}
|
||||
console.log('loadCheck')
|
||||
gl.lazyLoader.loadCheck();
|
||||
if (gl.lazyLoader) gl.lazyLoader.loadCheck();
|
||||
});
|
||||
return $(document).off('click', '.js-issuable-todo').on('click', '.js-issuable-todo', this.toggleTodo);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue