mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-03 23:56:53 +00:00
IndexedDB에 가끔 파일 및 디렉터리 정보를 저장하지 못하던 버그 수정
This commit is contained in:
@@ -34,7 +34,7 @@ export class FilesystemCache<K, V extends object> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
(state.value
|
(state.value
|
||||||
? Promise.resolve(state.value)
|
? Promise.resolve($state.snapshot(state.value) as V)
|
||||||
: this.options.fetchFromIndexedDB(key).then((loadedInfo) => {
|
: this.options.fetchFromIndexedDB(key).then((loadedInfo) => {
|
||||||
if (loadedInfo) {
|
if (loadedInfo) {
|
||||||
state.value = loadedInfo;
|
state.value = loadedInfo;
|
||||||
|
|||||||
Reference in New Issue
Block a user