Fix npe on main
TypeError: Cannot read properties of undefined (reading 'put') at DownloadManagerImpl.downloadFile (webpack-internal:///./src/services/download/index.ts:176:84)
This commit is contained in:
parent
d0956642b7
commit
ed6a72eb3c
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ class DownloadManagerImpl {
|
|||
if (cachedBlob) res = new Response(cachedBlob);
|
||||
else {
|
||||
res = await this.downloadClient.downloadFileStream(file);
|
||||
this?.fileCache.put(cacheKey, await res.blob());
|
||||
this.fileCache?.put(cacheKey, await res.blob());
|
||||
}
|
||||
const reader = res.body.getReader();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue