File tree Expand file tree Collapse file tree 1 file changed +6
-16
lines changed
Expand file tree Collapse file tree 1 file changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -44,17 +44,10 @@ function initSearchPopup(): SearchPopupObservable {
4444}
4545
4646export default function initSearch ( filterManager : PlaceFilterManager ) : void {
47- const places = Object . entries ( filterManager . entries ) . map (
48- ( [ placeId , entry ] ) => ( {
49- value : placeId ,
50- label : placeId ,
51- customProperties : {
52- place : entry . place . name ,
53- state : entry . place . state ?? "" ,
54- country : entry . place . country ,
55- } ,
56- } ) ,
57- ) ;
47+ const places = Object . entries ( filterManager . entries ) . map ( ( [ placeId ] ) => ( {
48+ value : placeId ,
49+ label : placeId ,
50+ } ) ) ;
5851 const htmlElement = document . querySelector ( ".search" ) ;
5952 if ( ! htmlElement ) return ;
6053
@@ -66,11 +59,8 @@ export default function initSearch(filterManager: PlaceFilterManager): void {
6659 allowHTML : false ,
6760 itemSelectText : "" ,
6861 searchEnabled : true ,
69- searchFields : [
70- "customProperties.place" ,
71- "customProperties.state" ,
72- "customProperties.country" ,
73- ] ,
62+ searchResultLimit : 10 ,
63+ searchFields : [ "label" ] ,
7464 } ) ;
7565
7666 // Set initial state.
You can’t perform that action at this time.
0 commit comments