mirror of
https://github.com/urbit/shrub.git
synced 2024-11-27 18:34:48 +03:00
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.
This commit is contained in:
parent
2f1f9b9c56
commit
d9f0d44e0c
@ -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)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user