@adactive/adsum-wayfindingcontrols-asia
Advanced tools
Comparing version 2.5.5 to 2.5.6
{ | ||
"name": "@adactive/adsum-wayfindingcontrols-asia", | ||
"version": "2.5.5", | ||
"version": "2.5.6", | ||
"description": "Adsum Way Finding Controls Component", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -105,3 +105,2 @@ // @flow | ||
if (!wayfindingState.drawing | ||
&& prevProps.wayfindingState.drawing | ||
&& wayFindingControlsState.takeMeThere | ||
@@ -127,3 +126,3 @@ && wayFindingControlsState.takeMeThere[0] | ||
// If The Current Index Of Wayfinder is Even (Between Add Interchange(IC) Label or Add Destination Label) | ||
if (wayfindingState.currentSectionIndex % 2 === 0) { | ||
if (wayfindingState.currentSectionIndex % 2 === 0 && prevProps.wayfindingState.drawing) { | ||
// If Interchange Label Exist, Delete it | ||
@@ -135,3 +134,3 @@ if (wayFindingControlsState.interchangeLabel.length > 0) { | ||
// If It is Destination Label | ||
if (prevProps.wayfindingState.drawing !== wayfindingState.drawing | ||
if (prevProps.wayfindingState.drawing !== wayfindingState.drawing && prevProps.wayfindingState.drawing | ||
&& wayfindingState.currentSectionIndex === (pathSection.length - 1)) { | ||
@@ -141,3 +140,3 @@ this.addArrivalLabel(finalLabelText, pathSection); | ||
// If it is Interchange Label(s) | ||
} else if (wayfindingState.currentSectionIndex !== (pathSection.length - 1)) { | ||
} else if (wayfindingState.currentSectionIndex !== (pathSection.length - 1) && prevProps.wayfindingState.drawing) { | ||
let icDestinationFloorPosition; | ||
@@ -240,3 +239,5 @@ if (pathSection[wayfindingState.currentSectionIndex + 1].to.pathNode.ground.id > kioskPlace.id) { | ||
} | ||
awm.objectManager.addLabelOnAdsumLocation(changeFloorLabel, pathSection[wayfindingState.currentSectionIndex].to); | ||
if (pathSection && pathSection[wayfindingState.currentSectionIndex] && pathSection[wayfindingState.currentSectionIndex].to){ | ||
awm.objectManager.addLabelOnAdsumLocation(changeFloorLabel, pathSection[wayfindingState.currentSectionIndex].to); | ||
} | ||
} | ||
@@ -243,0 +244,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24888
484