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;
|
||||
const isCollection = claim && claim.value_type === 'collection';
|
||||
// $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 isStream = claim && claim.value_type === 'stream';
|
||||
|
|
Loading…
Reference in a new issue