hotfix, create page node not properly updating with multiple locations
This commit is contained in:
parent
47c251e48d
commit
251614c507
|
@ -411,8 +411,11 @@
|
||||||
this.selectedNestObject = this.nests.find(nest => nest.id == this.selectedNest) ?? {}
|
this.selectedNestObject = this.nests.find(nest => nest.id == this.selectedNest) ?? {}
|
||||||
this.selectedEggObject = this.eggs.find(egg => egg.id == this.selectedEgg) ?? {}
|
this.selectedEggObject = this.eggs.find(egg => egg.id == this.selectedEgg) ?? {}
|
||||||
|
|
||||||
|
this.selectedNodeObject = {};
|
||||||
this.locations.forEach(location => {
|
this.locations.forEach(location => {
|
||||||
|
if (!this.selectedNodeObject?.id) {
|
||||||
this.selectedNodeObject = location.nodes.find(node => node.id == this.selectedNode) ?? {};
|
this.selectedNodeObject = location.nodes.find(node => node.id == this.selectedNode) ?? {};
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
this.selectedProductObject = this.products.find(product => product.id == this.selectedProduct) ?? {}
|
this.selectedProductObject = this.products.find(product => product.id == this.selectedProduct) ?? {}
|
||||||
|
|
Loading…
Reference in a new issue