link fe: make check less confusing
The only thing we care about is whether or not we have (any & all) data
about the submission. Using URL here is confusing because it conflates
with the prop, and checking the prop in the first place always gives the
same result.
@@ -26,7 +26,7 @@ export class LinkDetail extends Component {
componentDidMount() {
// if we have no preloaded data, and we aren't expecting it, get it
- if (!this.props.data.url || !this.props.url) {
+ if (!this.state.data.title) {
api.getSubmission(
this.props.path, this.props.url, this.updateData.bind(this)
);
