mirror of
https://github.com/immich-app/immich.git
synced 2025-11-15 17:43:08 +09:00
fix: update error handling to match new API (#7117)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user