refacto anchorFolder return value

This commit is contained in:
OxSaitama 2023-10-02 00:32:15 +02:00
parent 37d35f57f9
commit c64fa28804
2 changed files with 2 additions and 2 deletions

View File

@ -292,7 +292,7 @@ class FolderInformationClass extends BasePage<IPropsClass, IState> {
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) {

View File

@ -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]);