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
This commit is contained in:
parent
05e70648e0
commit
58bbdb9a2e
2 changed files with 2 additions and 2 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -3008,7 +3008,7 @@ const doUploadThumbnail = (filePath, thumbnailBuffer, fsAdapter, fs, path) => di
|
||||||
};
|
};
|
||||||
|
|
||||||
const doPrepareEdit = (claim, uri, fileInfo, fs) => dispatch => {
|
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 channelName = claim && claim.signing_channel && claim.signing_channel.normalized_name || null;
|
||||||
const {
|
const {
|
||||||
author,
|
author,
|
||||||
|
|
|
@ -172,7 +172,7 @@ export const doUploadThumbnail = (
|
||||||
export const doPrepareEdit = (claim: StreamClaim, uri: string, fileInfo: FileListItem, fs: any) => (
|
export const doPrepareEdit = (claim: StreamClaim, uri: string, fileInfo: FileListItem, fs: any) => (
|
||||||
dispatch: Dispatch
|
dispatch: Dispatch
|
||||||
) => {
|
) => {
|
||||||
const { name, amount, value } = claim;
|
const { name, amount, value = {} } = claim;
|
||||||
const channelName =
|
const channelName =
|
||||||
(claim && claim.signing_channel && claim.signing_channel.normalized_name) || null;
|
(claim && claim.signing_channel && claim.signing_channel.normalized_name) || null;
|
||||||
const {
|
const {
|
||||||
|
|
Loading…
Reference in a new issue