mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 10:02:47 +03:00
links: fix direct loading of link entry
If you go directly to a link's page, it will never load, because we don't look for 'link-update' in our data, post-global store. This checks properly.
This commit is contained in:
parent
ef62796305
commit
f1fd99a898
@ -44,8 +44,8 @@ export default class LinksApi extends BaseApi<StoreState> {
|
|||||||
this.fetchLink(
|
this.fetchLink(
|
||||||
endpoint,
|
endpoint,
|
||||||
(res) => {
|
(res) => {
|
||||||
if (res.data.submission) {
|
if (res.data?.['link-update']?.submission) {
|
||||||
callback(res.data.submission);
|
callback(res.data?.['link-update']?.submission);
|
||||||
} else {
|
} else {
|
||||||
console.error('unexpected submission response', res);
|
console.error('unexpected submission response', res);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user