Stop rendering languages twice on initial display

The resultHandler is responsible for updating the `LanguageCategoryDisplay`, so we should not call `render` separately in `search` when there is no search query.

https://phabricator.wikimedia.org/T185086
This commit is contained in:
Niklas Laxström
2018-01-31 12:08:33 +02:00
committed by Santhosh Thottingal
parent 104bf1c026
commit bb8b48aa38

View File

@@ -186,7 +186,6 @@
if ( query === '' ) {
this.options.lcd.setGroupByRegionOverride( null );
languages.map( this.render.bind( this ) );
this.resultHandler( query, languages );
return;
}