mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-11-04 08:10:28 +09:00
IndexedDB에 즐겨찾기 여부를 항상 저장하도록 변경
This commit is contained in:
1 parent
ff6ea3a0b9
commit
bcb57bb12d
12 files changed
+36
-12
No files matched your search
@@ -27,8 +27,8 @@ const cache = new FilesystemCache<number, MaybeFileInfo>({
|
||||
name: file.name,
|
||||
createdAt: file.createdAt,
|
||||
lastModifiedAt: file.lastModifiedAt,
|
||||
isFavorite: file.isFavorite,
|
||||
categories: categories?.filter((category) => !!category) ?? [],
|
||||
isFavorite: file.isFavorite,
|
||||
};
|
||||
}
|
||||
},
|
||||
@@ -56,8 +56,8 @@ const cache = new FilesystemCache<number, MaybeFileInfo>({
|
||||
name: metadata.name,
|
||||
createdAt: metadata.createdAt,
|
||||
lastModifiedAt: metadata.lastModifiedAt,
|
||||
isFavorite: file.isFavorite,
|
||||
categories,
|
||||
isFavorite: file.isFavorite,
|
||||
});
|
||||
} catch (e) {
|
||||
if (isTRPCClientError(e) && e.data?.code === "NOT_FOUND") {
|
||||
|
||||
Reference in new issue
Block a user