mirror of
https://github.com/immich-app/immich.git
synced 2025-06-03 19:19:23 +02:00
fix(web): user restore (#18188)
This commit is contained in:
parent
87cdf0ebd9
commit
66400b2e8e
1 changed files with 2 additions and 5 deletions
|
@ -14,11 +14,8 @@
|
||||||
|
|
||||||
const handleRestoreUser = async () => {
|
const handleRestoreUser = async () => {
|
||||||
try {
|
try {
|
||||||
const { deletedAt } = await restoreUserAdmin({ id: user.id });
|
await restoreUserAdmin({ id: user.id });
|
||||||
|
onClose(true);
|
||||||
if (deletedAt === undefined) {
|
|
||||||
onClose(true);
|
|
||||||
}
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
handleError(error, $t('errors.unable_to_restore_user'));
|
handleError(error, $t('errors.unable_to_restore_user'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue