I\'m new to using react.js, and am trying to write a re-usable component that has an optional property passed to it. In the component, that optional property pulls data from
You need to return out of getParentTaskLink() with the link you need.
if (current_task.parent_task) { return (link); } else { return null; }