Skip to content

Commit

Permalink
Fixed Bug 55236 - Editor: File from third-party storage is can added …
Browse files Browse the repository at this point in the history
…to favorites.
  • Loading branch information
TatianaLopaeva committed Feb 3, 2022
1 parent d0bb0c1 commit 0f76ba3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/ASC.Web.Editor/src/Editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,9 @@ const Editor = () => {
const onlyNumbers = new RegExp("^[0-9]+$");
const isFileWithoutProvider = onlyNumbers.test(fileId);

const convertFileId = isFileWithoutProvider ? +fileId : fileId;
const convertFileId = isFileWithoutProvider
? +fileId
: decodeURIComponent(fileId);

favorite
? markAsFavorite([convertFileId])
Expand Down

0 comments on commit 0f76ba3

Please sign in to comment.