Fix newscan for files
This commit is contained in:
parent
8d5f1a8c5d
commit
a28c1a82d8
|
@ -72,10 +72,8 @@ exports.getModule = class FileAreaList extends MenuModule {
|
|||
constructor(options) {
|
||||
super(options);
|
||||
|
||||
if(options.extraArgs) {
|
||||
this.filterCriteria = options.extraArgs.filterCriteria;
|
||||
this.fileList = options.fileList;
|
||||
}
|
||||
this.filterCriteria = _.get(options, 'extraArgs.filterCriteria');
|
||||
this.fileList = _.get(options, 'extraArgs.fileList');
|
||||
|
||||
this.dlQueue = new DownloadQueue(this.client);
|
||||
|
||||
|
@ -354,6 +352,7 @@ exports.getModule = class FileAreaList extends MenuModule {
|
|||
[
|
||||
function fetchEntryData(callback) {
|
||||
if(self.fileList) {
|
||||
self.fileListPosition = 0;
|
||||
return callback(null);
|
||||
}
|
||||
return self.loadFileIds(false, callback); // false=do not force
|
||||
|
|
Loading…
Reference in New Issue