mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-16 02:22:12 +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() {
|
componentDidMount() {
|
||||||
// if we have no preloaded data, and we aren't expecting it, get it
|
// 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(
|
api.getSubmission(
|
||||||
this.props.path, this.props.url, this.updateData.bind(this)
|
this.props.path, this.props.url, this.updateData.bind(this)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user