Fix random crash
Fixes https://github.com/lbryio/lbry-desktop/issues/6918
This commit is contained in:
parent
51576a827d
commit
f8c568e301
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ export default function PreviewOverlayProperties(props: Props) {
|
||||||
} = props;
|
} = props;
|
||||||
const isCollection = claim && claim.value_type === 'collection';
|
const isCollection = claim && claim.value_type === 'collection';
|
||||||
// $FlowFixMe
|
// $FlowFixMe
|
||||||
const claimLength = claim && claim.value.claims && claim.value.claims.length;
|
const claimLength = claim && claim.value && claim.value.claims && claim.value.claims.length;
|
||||||
|
|
||||||
const claimCount = editedCollection ? editedCollection.items.length : claimLength;
|
const claimCount = editedCollection ? editedCollection.items.length : claimLength;
|
||||||
const isStream = claim && claim.value_type === 'stream';
|
const isStream = claim && claim.value_type === 'stream';
|
||||||
|
|
Loading…
Reference in a new issue