From 58bbdb9a2e537b3994d545ede120d070a7b41ee5 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 13 Aug 2019 21:05:30 -0400 Subject: [PATCH] default 'value' to object for edits so we don't need to pass in an empty object if we just want to populate the name --- dist/bundle.es.js | 2 +- src/redux/actions/publish.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 568f1c6..d7554c7 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -3008,7 +3008,7 @@ const doUploadThumbnail = (filePath, thumbnailBuffer, fsAdapter, fs, path) => di }; const doPrepareEdit = (claim, uri, fileInfo, fs) => dispatch => { - const { name, amount, value } = claim; + const { name, amount, value = {} } = claim; const channelName = claim && claim.signing_channel && claim.signing_channel.normalized_name || null; const { author, diff --git a/src/redux/actions/publish.js b/src/redux/actions/publish.js index 69844c0..6c23373 100644 --- a/src/redux/actions/publish.js +++ b/src/redux/actions/publish.js @@ -172,7 +172,7 @@ export const doUploadThumbnail = ( export const doPrepareEdit = (claim: StreamClaim, uri: string, fileInfo: FileListItem, fs: any) => ( dispatch: Dispatch ) => { - const { name, amount, value } = claim; + const { name, amount, value = {} } = claim; const channelName = (claim && claim.signing_channel && claim.signing_channel.normalized_name) || null; const {