diff --git a/src/services/edm.ts b/src/services/edm.ts index 176c4da..9f87960 100644 --- a/src/services/edm.ts +++ b/src/services/edm.ts @@ -128,7 +128,7 @@ export async function list(operation: "file" | "folder", path: string[]) { if (!res || !res.ok) { if (res && res.status === HttpStatus.NOT_FOUND) { - throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบแฟ้ม/ไฟล์ในระบบ"); + return []; } return Boolean(console.error(res ? await res.json() : res)); }