From 7c32710e89f819929196b17d88705c50e61899f1 Mon Sep 17 00:00:00 2001 From: jessop Date: Thu, 2 May 2019 12:04:05 -0400 Subject: [PATCH] add replace to publish flags --- flow-typed/publish.js | 2 ++ src/ui/redux/actions/publish.js | 1 + 2 files changed, 3 insertions(+) diff --git a/flow-typed/publish.js b/flow-typed/publish.js index 7791303e6..1de7a4b43 100644 --- a/flow-typed/publish.js +++ b/flow-typed/publish.js @@ -23,6 +23,7 @@ declare type UpdatePublishFormData = { licenseUrl?: string, licenseType?: string, uri?: string, + replace?: boolean, }; declare type PublishParams = { @@ -45,6 +46,7 @@ declare type PublishParams = { currency: string, amount: number, }, + replace?: boolean, // This is bad. // Will be removed for tags soon diff --git a/src/ui/redux/actions/publish.js b/src/ui/redux/actions/publish.js index 4fc813da0..d99af3949 100644 --- a/src/ui/redux/actions/publish.js +++ b/src/ui/redux/actions/publish.js @@ -161,6 +161,7 @@ export const doPrepareEdit = (claim: StreamClaim, uri: string) => (dispatch: Dis uri, uploadThumbnailStatus: thumbnail ? THUMBNAIL_STATUSES.MANUAL : undefined, licenseUrl, + replace: true, }; // Make sure custom liscence's are mapped properly