Merge pull request #282 from ControlPanel-gg/product_linking
fixed the most annoying bug where the pre-selected node id was incorrect
This commit is contained in:
commit
fccf0a19b0
|
@ -229,7 +229,7 @@
|
||||||
<small x-text="selectedProductObject?.name ?? '{{__('No selection')}}'"
|
<small x-text="selectedProductObject?.name ?? '{{__('No selection')}}'"
|
||||||
class="text-muted"></small>
|
class="text-muted"></small>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<template x-if="selectedProductObject?.name">
|
<template x-if="selectedProductObject?.name">
|
||||||
<ul class="pl-0">
|
<ul class="pl-0">
|
||||||
<li class="d-flex justify-content-between">
|
<li class="d-flex justify-content-between">
|
||||||
|
@ -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].id;
|
this.selectedNode = this.locations[0]?.nodes?.id;
|
||||||
await this.fetchProducts();
|
await this.fetchProducts();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue