Closed slifty closed 4 years ago
Update: this only appears to happen if there is at least one output stream in the output map (otherwise there are no sources / seeds so it doesn't get to that line).
Still a bug, but the example code in this issue wasn't fully sufficient to reproduce.
Bug
Current Behavior
The
generateTributaryMaps
utility will take in a station and an output map, and figure out all of the combinations of those outputs that would be a valid tributary set.Unfortunately, it breaks if that output map is missing a given input type (e.g. if the station expects
foo
but there are no outputs producingfoo
.Input
Code, command line, or other relevant input / steps to reproduce the issue.
The error:
Expected Behavior
If an input has no output stream, it should simply return an empty array since there are no valid tributary maps.
Possible Solutions
We should account for cases where
streamOutputMap.get(type)
returns undefined. This could be as simple as replacing it with:( streamOutputMap.get(type) || [] )
Related Issues
None.