if there is no search el return

aka if theme doesnt support it
This commit is contained in:
Barış Soner Uşaklı
2018-11-21 15:52:47 -05:00
parent b331ca26a1
commit 625516e046

View File

@@ -8,6 +8,9 @@ define('categorySearch', function () {
return;
}
var searchEl = el.find('[component="category-selector-search"]');
if (!searchEl.length) {
return;
}
var categoryEls = el.find('[component="category/list"] [data-cid]');
el.on('show.bs.dropdown', function () {
function updateList() {