mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
chore: disable rules in oxlint (#9154)
This commit is contained in:
@@ -38,7 +38,11 @@ export function DataTableRowActions({ user }: DataTableRowActionsProps) {
|
||||
const { resetPasswordLink, onResetPassword } = useResetUserPassword();
|
||||
|
||||
const openResetPasswordDialog = useCallback(() => {
|
||||
onResetPassword(user.id, () => setResetPasswordDialogOpen(true));
|
||||
onResetPassword(user.id, () => setResetPasswordDialogOpen(true)).catch(
|
||||
e => {
|
||||
console.error(e);
|
||||
}
|
||||
);
|
||||
}, [onResetPassword, user.id]);
|
||||
|
||||
const handleCopy = useCallback(() => {
|
||||
|
||||
@@ -53,7 +53,7 @@ export const useCreateUser = () => {
|
||||
toast.error('Failed to update account: ' + (e as Error).message);
|
||||
}
|
||||
},
|
||||
[createAccount, revalidate]
|
||||
[createAccount, revalidate, updateAccountFeatures]
|
||||
);
|
||||
|
||||
return { creating: creating || !!error, create };
|
||||
@@ -99,7 +99,7 @@ export const useUpdateUser = () => {
|
||||
toast.error('Failed to update account: ' + (e as Error).message);
|
||||
}
|
||||
},
|
||||
[revalidate, updateAccount]
|
||||
[revalidate, updateAccount, updateAccountFeatures]
|
||||
);
|
||||
|
||||
return { updating: updating || !!error, update };
|
||||
|
||||
Reference in New Issue
Block a user