diff --git a/src/controls/MMapSearchControl/MMapSuggest/index.ts b/src/controls/MMapSearchControl/MMapSuggest/index.ts index 8564876..2f13952 100644 --- a/src/controls/MMapSearchControl/MMapSuggest/index.ts +++ b/src/controls/MMapSearchControl/MMapSuggest/index.ts @@ -90,7 +90,7 @@ class MMapSuggest extends mappable.MMapComplexEntity { private _addSuggestItems(suggest: SuggestResponse, onSuggestClick: MMapSuggestProps['onSuggestClick']) { suggest.forEach((suggestItem) => { - const searchParams = suggestItem.uri ? {uri: suggestItem.uri} : {text: suggestItem.title.text}; + const searchParams = {uri: suggestItem.uri, text: suggestItem.title.text}; this.addChild( new MMapSuggestItem({ diff --git a/src/controls/MMapSearchControl/index.ts b/src/controls/MMapSearchControl/index.ts index 5747d69..228a832 100644 --- a/src/controls/MMapSearchControl/index.ts +++ b/src/controls/MMapSearchControl/index.ts @@ -126,7 +126,7 @@ class MMapSearchCommonControl extends mappable.MMapComplexEntity