Ensure autofillLabel is undefined if searchApi fails

This commit is contained in:
Niklas Laxström
2017-11-29 10:31:55 +02:00
committed by GitHub
parent 82eee93dbd
commit 7119bdff5c

View File

@@ -186,7 +186,7 @@
if ( this.options.searchAPI ) {
this.searchAPI( query )
.done( this.resultHandler.bind( this ) )
.fail( this.resultHandler.bind( this, query, results ) );
.fail( this.resultHandler.bind( this, query, results, undefined ) );
} else {
this.resultHandler( query, results );
}