Fix null check for destOfCurPremisses in destination update logic in destinationEdit.js.
This commit is contained in:
parent
89a132dc4a
commit
a0db2c881c
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ export const useDestinationEditStore = defineStore('destinationEdit', {
|
||||||
if ((destOfCurPremisses ?? null) !== null) {
|
if ((destOfCurPremisses ?? null) !== null) {
|
||||||
const destOfCurPremise = destOfCurPremisses.find(d => destinationUpdateInfo.destinationNodeId === d.destination_node.id);
|
const destOfCurPremise = destOfCurPremisses.find(d => destinationUpdateInfo.destinationNodeId === d.destination_node.id);
|
||||||
|
|
||||||
if(destinationUpdateInfo.ids.includes(destOfCurPremise.id)) {
|
if(destOfCurPremisses && destinationUpdateInfo.ids.includes(destOfCurPremise?.id)) {
|
||||||
/* set d2d stuff */
|
/* set d2d stuff */
|
||||||
destOfCurPremise.is_d2d = destinationUpdateInfo.isD2d;
|
destOfCurPremise.is_d2d = destinationUpdateInfo.isD2d;
|
||||||
destOfCurPremise.rate_d2d = destinationUpdateInfo.rateD2d;
|
destOfCurPremise.rate_d2d = destinationUpdateInfo.rateD2d;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue