fix existing publish name check for edit mode
This commit is contained in:
parent
467272d5c8
commit
9f32363a09
|
@ -401,7 +401,7 @@ class PublishPage extends React.PureComponent {
|
||||||
if (!isNameValid(name, false)) {
|
if (!isNameValid(name, false)) {
|
||||||
notify({ message: __('Your content address contains invalid characters.'), isError: true });
|
notify({ message: __('Your content address contains invalid characters.'), isError: true });
|
||||||
return;
|
return;
|
||||||
} else if (myClaims && myClaims.length > 0) {
|
} else if (!editMode && myClaims && myClaims.length > 0) {
|
||||||
if (myClaims.some(claim => claim.name.toLowerCase() === name.trim().toLowerCase())) {
|
if (myClaims.some(claim => claim.name.toLowerCase() === name.trim().toLowerCase())) {
|
||||||
notify({
|
notify({
|
||||||
message: __('You have already published to the specified content address. Please enter a new address.'),
|
message: __('You have already published to the specified content address. Please enter a new address.'),
|
||||||
|
|
Loading…
Reference in a new issue