Arthur il y a 1 mois
Parent
commit
89af9efd85

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
netbox/project-static/dist/netbox.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
netbox/project-static/dist/netbox.js.map


+ 5 - 3
netbox/project-static/src/select/classes/dynamicTomSelect.ts

@@ -109,9 +109,11 @@ export class DynamicTomSelect extends TomSelect {
           }
           }
         });
         });
 
 
-        self.loading = Math.max(self.loading - 1, 0);
-        if (self.loading === 0) {
-          self.wrapper.classList.remove(self.settings.loadingClass as string);
+        if (self.loading > 0) {
+          self.loading--;
+          if (self.loading === 0) {
+            self.wrapper.classList.remove(self.settings.loadingClass as string);
+          }
         }
         }
 
 
         if (currentValue && !self.items.includes(currentValue as string)) {
         if (currentValue && !self.items.includes(currentValue as string)) {

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff