fix crash on invite page
This commit is contained in:
parent
33c325031d
commit
7fdc3d2919
1 changed files with 13 additions and 11 deletions
|
@ -16,6 +16,7 @@ export default function LivestreamLink(props: Props) {
|
|||
const livestreamChannelId = channelClaim.claim_id || ''; // TODO: fail in a safer way, probably
|
||||
|
||||
React.useEffect(() => {
|
||||
if (livestreamChannelId) {
|
||||
Lbry.claim_search({
|
||||
channel_ids: [livestreamChannelId],
|
||||
has_no_source: true,
|
||||
|
@ -28,6 +29,7 @@ export default function LivestreamLink(props: Props) {
|
|||
}
|
||||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
}, [livestreamChannelId]);
|
||||
|
||||
React.useEffect(() => {
|
||||
|
|
Loading…
Reference in a new issue