Skip to content

Commit

Permalink
Merge pull request #287 from ControlPanel-gg/development
Browse files Browse the repository at this point in the history
hotfix, create page node not properly updating with multiple locations
  • Loading branch information
AVMG20 authored Nov 12, 2021
2 parents 0c51471 + 251614c commit 47037dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/views/servers/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,11 @@ function serverApp() {
this.selectedNestObject = this.nests.find(nest => nest.id == this.selectedNest) ?? {}
this.selectedEggObject = this.eggs.find(egg => egg.id == this.selectedEgg) ?? {}
this.selectedNodeObject = {};
this.locations.forEach(location => {
this.selectedNodeObject = location.nodes.find(node => node.id == this.selectedNode) ?? {};
if (!this.selectedNodeObject?.id) {
this.selectedNodeObject = location.nodes.find(node => node.id == this.selectedNode) ?? {};
}
})
this.selectedProductObject = this.products.find(product => product.id == this.selectedProduct) ?? {}
Expand Down

0 comments on commit 47037dc

Please sign in to comment.