plantquest / plantquest-assetmap

PlantQuest Web SDK for Asset Mapping
MIT License
2 stars 2 forks source link

Refactor/indicator #51

Closed guhmerces closed 1 year ago

guhmerces commented 1 year ago

This PR:

Replace references to current.current.asset[assetID] to self.asset.map[assetID]. Reason : After adding a new asset object to showAsset(), this same function started handling a different asset object compared to others functions. Between the times showAsset() is called, current.current.asset[assetID] has its state changed, while self.asset.map[assetID] stills the same, preventing showAsset() to work correctly as it relies on self.asset.map[assetID] now.

This PR also remove references to currentAsset from showAsset()