mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: update error handling to match new API (#7117)
This commit is contained in:
parent
6adff50f0a
commit
2906950188
3 changed files with 4 additions and 7 deletions
|
|
@ -14,7 +14,6 @@ import {
|
|||
type UserResponseDto,
|
||||
} from '@immich/sdk';
|
||||
import { common } from '@immich/sdk/axios';
|
||||
import type { AxiosError } from 'axios';
|
||||
import { get } from 'svelte/store';
|
||||
|
||||
interface UpdateParamAction {
|
||||
|
|
@ -135,8 +134,6 @@ export const getAssetJobMessage = (job: AssetJobName) => {
|
|||
return messages[job];
|
||||
};
|
||||
|
||||
export type ApiError = AxiosError<{ message: string }>;
|
||||
|
||||
export const copyToClipboard = async (secret: string) => {
|
||||
try {
|
||||
await navigator.clipboard.writeText(secret);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue