mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-16 06:58:46 +00:00
삭제된 파일이나 디렉터리의 경우에도 메타데이터를 복호화하려고 시도하던 버그 수정
This commit is contained in:
@@ -77,6 +77,7 @@ const fetchDirectoryInfoFromServer = async (
|
|||||||
if (res.status === 404) {
|
if (res.status === 404) {
|
||||||
info.set(null);
|
info.set(null);
|
||||||
await deleteDirectoryInfo(id as number);
|
await deleteDirectoryInfo(id as number);
|
||||||
|
return;
|
||||||
} else if (!res.ok) {
|
} else if (!res.ok) {
|
||||||
throw new Error("Failed to fetch directory information");
|
throw new Error("Failed to fetch directory information");
|
||||||
}
|
}
|
||||||
@@ -149,6 +150,7 @@ const fetchFileInfoFromServer = async (
|
|||||||
if (res.status === 404) {
|
if (res.status === 404) {
|
||||||
info.set(null);
|
info.set(null);
|
||||||
await deleteFileInfo(id);
|
await deleteFileInfo(id);
|
||||||
|
return;
|
||||||
} else if (!res.ok) {
|
} else if (!res.ok) {
|
||||||
throw new Error("Failed to fetch file information");
|
throw new Error("Failed to fetch file information");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user