use replace for list updates

This commit is contained in:
zeppi 2021-09-10 23:36:55 -04:00
parent 49b9db5aae
commit 8dbaf67dce
2 changed files with 4 additions and 1 deletions

3
dist/bundle.es.js vendored
View file

@ -4520,7 +4520,8 @@ function doCollectionPublishUpdate(options, isBackgroundUpdate) {
locations: [], locations: [],
blocking: true, blocking: true,
claim_id: options.claim_id, claim_id: options.claim_id,
clear_claims: true clear_claims: true,
replace: true
}; };
if (isBackgroundUpdate && updateParams.claim_id) { if (isBackgroundUpdate && updateParams.claim_id) {

View file

@ -859,6 +859,7 @@ export function doCollectionPublishUpdate(
languages?: Array<string>, languages?: Array<string>,
claims?: Array<string>, claims?: Array<string>,
clear_claims: boolean, clear_claims: boolean,
replace: boolean,
} = isBackgroundUpdate } = isBackgroundUpdate
? { ? {
blocking: true, blocking: true,
@ -876,6 +877,7 @@ export function doCollectionPublishUpdate(
blocking: true, blocking: true,
claim_id: options.claim_id, claim_id: options.claim_id,
clear_claims: true, clear_claims: true,
replace: true,
}; };
if (isBackgroundUpdate && updateParams.claim_id) { if (isBackgroundUpdate && updateParams.claim_id) {