fix: don't change uri when re-selecting file
This commit is contained in:
parent
508f2249ba
commit
029576f786
1 changed files with 3 additions and 1 deletions
|
@ -56,7 +56,9 @@ function PublishFile(props: Props) {
|
|||
let fileName = file.name.substr(0, file.name.lastIndexOf('.')) || file.name;
|
||||
let replaceChars = new RegExp(regexInvalidURI, 'gu');
|
||||
let parsedFileName = fileName.replace(replaceChars, '-');
|
||||
if (!isStillEditing) {
|
||||
publishFormParams.name = parsedFileName;
|
||||
}
|
||||
updatePublishForm(publishFormParams);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue