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()
This PR:
Replace references to
current.current.asset[assetID]
toself.asset.map[assetID]
. Reason : After adding a new asset object toshowAsset()
, this same function started handling a different asset object compared to others functions. Between the timesshowAsset()
is called,current.current.asset[assetID]
has its state changed, whileself.asset.map[assetID]
stills the same, preventingshowAsset()
to work correctly as it relies onself.asset.map[assetID]
now.This PR also remove references to
currentAsset
fromshowAsset()