fix unreadable characters instead of name in Info/Details

This commit is contained in:
Elyor Djalilov 2023-02-28 19:23:57 +05:00
parent 18274f9a99
commit 5a9bbcac84

View File

@ -7,6 +7,7 @@ import getCorrectDate from "@docspace/components/utils/getCorrectDate";
import Link from "@docspace/components/link";
import Text from "@docspace/components/text";
import Tag from "@docspace/components/tag";
import { decode } from "he";
import {
connectedCloudsTypeTitleTranslation as getProviderTranslation,
@ -227,8 +228,8 @@ class DetailsHelper {
const onOpenUser = () => this.openUser(this.item.createdBy, this.history);
return this.personal || this.isVisitor
? text(decodeString(this.item.createdBy?.displayName))
: link(decodeString(this.item.createdBy?.displayName), onOpenUser);
? text(decode(this.item.createdBy?.displayName))
: link(decode(this.item.createdBy?.displayName), onOpenUser);
};
getItemLocation = () => {
@ -279,8 +280,8 @@ class DetailsHelper {
const onOpenUser = () => this.openUser(this.item.updatedBy, this.history);
return this.personal || this.isVisitor
? text(decodeString(this.item.updatedBy?.displayName))
: link(decodeString(this.item.updatedBy?.displayName), onOpenUser);
? text(decode(this.item.updatedBy?.displayName))
: link(decode(this.item.updatedBy?.displayName), onOpenUser);
};
getItemCreationDate = () => {