Fix more build errors

This commit is contained in:
Darren Clarke 2023-03-15 12:17:43 +00:00
parent 1bdc1e60db
commit 30ce47826f
61 changed files with 1161 additions and 541 deletions

View file

@ -30,7 +30,7 @@ const UserEditToolbar = (props: any) => {
<Toolbar className={classes.defaultToolbar} {...props}>
<SaveButton
label="save"
mutationOptions={{ onSuccess: (response) => redirect("/users") }}
mutationOptions={{ onSuccess: () => redirect("/users") }}
/>
<DeleteButton disabled={props.session.user.id === props.record.id} />
</Toolbar>
@ -39,7 +39,7 @@ const UserEditToolbar = (props: any) => {
const UserTitle = ({ record }: { record?: any }) => {
let title = "";
if (record) title = record.name ? record.name : record.email;
if (record) title = record.name ?? record.email;
return <span>User {title}</span>;
};