Web: Editor: Fixed url after converting.

This commit is contained in:
Tatiana Lopaeva 2021-10-07 19:04:22 +03:00
parent b8f77d4a29
commit 659a5a409b

View File

@ -260,7 +260,6 @@ const Editor = () => {
);
return;
}
if (successAuth) {
try {
fileInfo = await getFileInfo(fileId);
@ -269,7 +268,8 @@ const Editor = () => {
const needConvert = canConvert(fileInfo.fileExst);
if (needConvert) {
location.href = await convertDocumentUrl();
const url = await convertDocumentUrl();
history.pushState({}, null, url);
}
}
} catch (err) {