mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
Breadcrumbs: Fix JS error on (auto submitting) search page when only 1 item in the breadcrumbs
This commit is contained in:
@@ -149,7 +149,9 @@ $(function()
|
||||
this.element.find(this.js_selectors.previous_items_list_toggler).off('click');
|
||||
|
||||
// Remove observers
|
||||
this.items_observer.disconnect();
|
||||
if (this.items_observer !== null) {
|
||||
this.items_observer.disconnect();
|
||||
}
|
||||
|
||||
// Clear any existing entries in the markup
|
||||
this.element.find(this.js_selectors.item).remove();
|
||||
|
||||
Reference in New Issue
Block a user