destinationStationId for last item can have an undefined name that is causing the module to 💣 , I put a safe guard to check for such value, and if present, to skip pushing item into the array for future use. This, IMO is not the best way to go about, but does fix the issue, and seeing as we never likely will need the final object, as we only use first 3 for each direction, this is good for now.
Description: ✍️
destinationStationId
for last item can have anundefined
name that is causing the module to 💣 , I put a safe guard to check for such value, and if present, to skip pushing item into the array for future use. This, IMO is not the best way to go about, but does fix the issue, and seeing as we never likely will need the final object, as we only use first 3 for each direction, this is good for now.Issue(s): 🎟️
25
Visual: 🔍
Before:
After:
Reference(s): 📖