Commit ae36ee6a authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Conditionally call loadCheck if lazyLoader is present

parent 94749a45
......@@ -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);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment