NCATS-Gamma / robokop

Master UI for ROBOKOP
MIT License
16 stars 3 forks source link

fixing bug where support edges stopped showing up #439

Closed maximusunc closed 5 years ago

maximusunc commented 5 years ago

The bug came from a change in the message being sent to the front end. Node bindings in the answers used to be arrays for set nodes and strings for not, but now they're all arrays. This fix gets the question graph node and checks the 'set' boolean flag. If the node isn't a set, we either take the node binding string (for backwards compatibility) or the first element of the array of bindings (even if there are more, the node isn't a set).