AVMG20 3 лет назад
Родитель
Сommit
6bad46e4e7
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      resources/views/servers/create.blade.php

+ 1 - 1
resources/views/servers/create.blade.php

@@ -368,7 +368,7 @@
 
 
                     //automatically select the first entry if there is only 1
                     //automatically select the first entry if there is only 1
                     if (this.locations.length === 1 && this.locations[0]?.nodes?.length === 1) {
                     if (this.locations.length === 1 && this.locations[0]?.nodes?.length === 1) {
-                        this.selectedNode = this.locations[0]?.nodes?.id;
+                        this.selectedNode = this.locations[0]?.nodes[0]?.id;
                         await this.fetchProducts();
                         await this.fetchProducts();
                         return;
                         return;
                     }
                     }