diff --git a/src/front/Components/Layouts/Folder/FolderInformation/index.tsx b/src/front/Components/Layouts/Folder/FolderInformation/index.tsx index 7d113588..f122a976 100644 --- a/src/front/Components/Layouts/Folder/FolderInformation/index.tsx +++ b/src/front/Components/Layouts/Folder/FolderInformation/index.tsx @@ -292,7 +292,7 @@ class FolderInformationClass extends BasePage { private async anchorFolder() { if (!this.state.selectedFolder?.uid) return; - const anchor = await OfficeFolderAnchors.getInstance().post(this.state.selectedFolder.uid); + return await OfficeFolderAnchors.getInstance().post(this.state.selectedFolder.uid); } private async downloadAnchoringProof(uid?: string) { diff --git a/src/front/Components/Layouts/Users/UserInformations/index.tsx b/src/front/Components/Layouts/Users/UserInformations/index.tsx index 08c59981..88ce1957 100644 --- a/src/front/Components/Layouts/Users/UserInformations/index.tsx +++ b/src/front/Components/Layouts/Users/UserInformations/index.tsx @@ -72,7 +72,7 @@ export default function UserInformations(props: IProps) { const roles = await Roles.getInstance().get({ where: {NOT: {OR:[{name: "super-admin"}, {name: "admin"}]}}, }); - if (!roles) return; + if (!roles) return setAvailableRoles(roles.map((role) => ({ value: role.uid, label: role.label }))); setUserSelected(user); }, [userUid]);