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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user