Fix crash with no channel

This commit is contained in:
Thomas Zarebczan 2021-12-28 13:40:16 -05:00
parent d8123bd372
commit 283ea69a6e
No known key found for this signature in database
GPG key ID: D505010BDB4364BC

View file

@ -216,7 +216,7 @@ function PublishForm(props: Props) {
const formDisabled = (fileFormDisabled && !editingURI) || emptyPostError || publishing; const formDisabled = (fileFormDisabled && !editingURI) || emptyPostError || publishing;
const isInProgress = filePath || editingURI || name || title; const isInProgress = filePath || editingURI || name || title;
const activeChannelName = activeChannelClaim && activeChannelClaim.name; const activeChannelName = activeChannelClaim && activeChannelClaim.name;
const activeChannelClaimStr = JSON.stringify(activeChannelClaim); const activeChannelClaimStr = activeChannelClaim && JSON.stringify(activeChannelClaim);
// Editing content info // Editing content info
const fileMimeType = const fileMimeType =
myClaimForUri && myClaimForUri.value && myClaimForUri.value.source myClaimForUri && myClaimForUri.value && myClaimForUri.value.source