1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

#6372: Fix regression from 1661d1f causing API select query delays

This commit is contained in:
checktheroads
2021-07-20 00:36:55 -07:00
parent 07f34c2675
commit 09066a4c6c
3 changed files with 3 additions and 3 deletions

View File

@ -175,7 +175,7 @@ class APISelect {
this.addEventListeners();
// Determine if this element is part of collapsible element.
const collapse = findFirstAdjacent(this.base, '.collapse', '.content-container');
const collapse = this.base.closest('.content-container .collapse');
if (collapse !== null) {
// If this element is part of a collapsible element, only load the data when the
// collapsible element is shown.