We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd96356 commit 7c3b29dCopy full SHA for 7c3b29d
1 file changed
src/worker/file-Indexing-Worker-thread.js
@@ -258,7 +258,11 @@ function addFilesToCache(updateObject) {
258
return (changedFilesAlreadyInList.indexOf(path) === -1) ? true : false;
259
}
260
newFiles = changedFilesAlreadyInList.filter(isNotAlreadyInList);
261
- files.push.apply(files, newFiles);
+ if(!files){
262
+ console.error("file indexing worker: addFilesToCache called before initCache!!!");
263
+ files = [];
264
+ }
265
+ files.push(...newFiles);
266
267
268
/**
0 commit comments