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:
committed by
Santhosh Thottingal
parent
104bf1c026
commit
bb8b48aa38
@@ -186,7 +186,6 @@
|
|||||||
|
|
||||||
if ( query === '' ) {
|
if ( query === '' ) {
|
||||||
this.options.lcd.setGroupByRegionOverride( null );
|
this.options.lcd.setGroupByRegionOverride( null );
|
||||||
languages.map( this.render.bind( this ) );
|
|
||||||
this.resultHandler( query, languages );
|
this.resultHandler( query, languages );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user