Skip to content

High performance self-hosted photo and video management solution.

chore(web): linting (#1152)

Jason Rasmussen832692c8af92
diff --git a/web/src/lib/components/user-settings-page/user-settings-list.svelte b/web/src/lib/components/user-settings-page/user-settings-list.svelte
index 0f2589dfdd..83aab28d71 100644
--- a/web/src/lib/components/user-settings-page/user-settings-list.svelte
+++ b/web/src/lib/components/user-settings-page/user-settings-list.svelte
@@ -11,6 +11,8 @@
SettingInputFieldType
} from '../admin-page/settings/setting-input-field.svelte';
+ type ApiError = AxiosError<{ message: string }>;
+
export let user: UserResponseDto;
const handleSaveProfile = async () => {
@@ -55,10 +57,10 @@
password = '';
newPassword = '';
confirmPassword = '';
- } catch (error: AxiosError | any) {
+ } catch (error) {
console.error('Error [user-profile] [changePassword]', error);
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
});
}