Avoid calling searchAPI more than once
The calling code should not be in loop Change-Id: Ib8433115bf9bf18827ad13bcfb3299a846ae98b3
This commit is contained in:
@@ -192,13 +192,13 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Also do a search by search API
|
||||
if ( !this.resultCount && this.options.searchAPI && query ) {
|
||||
this.searchAPI( query );
|
||||
} else {
|
||||
this.resultHandler( query );
|
||||
}
|
||||
// Also do a search by search API
|
||||
if ( !this.resultCount && this.options.searchAPI && query ) {
|
||||
this.searchAPI( query );
|
||||
} else {
|
||||
this.resultHandler( query );
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user