mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-03 04:00:57 +00:00
Catch sidebar error
This commit is contained in:
@ -113,10 +113,11 @@ function enableSidebar(label, options={}) {
|
||||
} else {
|
||||
// Find the "first" available panel (according to the sidebar)
|
||||
var selector = $('.sidebar-selector').first();
|
||||
|
||||
var panel_name = selector.attr('id').replace('select-', '');
|
||||
|
||||
activatePanel(label, panel_name);
|
||||
|
||||
if (selector.exists()) {
|
||||
var panel_name = selector.attr('id').replace('select-', '');
|
||||
activatePanel(label, panel_name);
|
||||
}
|
||||
}
|
||||
|
||||
if (options.hide_toggle) {
|
||||
|
Reference in New Issue
Block a user