mirror of
https://github.com/immich-app/immich.git
synced 2025-03-01 15:11:21 +01:00
chore(web): linting (#1152)
This commit is contained in:
parent
14db7a09e3
commit
832692c8af
1 changed files with 4 additions and 2 deletions
|
@ -11,6 +11,8 @@
|
||||||
SettingInputFieldType
|
SettingInputFieldType
|
||||||
} from '../admin-page/settings/setting-input-field.svelte';
|
} from '../admin-page/settings/setting-input-field.svelte';
|
||||||
|
|
||||||
|
type ApiError = AxiosError<{ message: string }>;
|
||||||
|
|
||||||
export let user: UserResponseDto;
|
export let user: UserResponseDto;
|
||||||
|
|
||||||
const handleSaveProfile = async () => {
|
const handleSaveProfile = async () => {
|
||||||
|
@ -55,10 +57,10 @@
|
||||||
password = '';
|
password = '';
|
||||||
newPassword = '';
|
newPassword = '';
|
||||||
confirmPassword = '';
|
confirmPassword = '';
|
||||||
} catch (error: AxiosError | any) {
|
} catch (error) {
|
||||||
console.error('Error [user-profile] [changePassword]', error);
|
console.error('Error [user-profile] [changePassword]', error);
|
||||||
notificationController.show({
|
notificationController.show({
|
||||||
message: error?.response?.data?.message || 'Unable to change password',
|
message: (error as ApiError)?.response?.data?.message || 'Unable to change password',
|
||||||
type: NotificationType.Error
|
type: NotificationType.Error
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue