Skip to content

Commit

Permalink
Fix search control suggest (#34)
Browse files Browse the repository at this point in the history
<!--

Thank you for submitting a pull request!

Here's a checklist you might find useful.
[ ] There is an associated issue that is labelled
  'Bug' or 'help wanted' or is in the Community milestone
[ ] Code is up-to-date with the `main` branch
[ ] You've successfully run `npm test` locally
[ ] There are new or updated tests validating the change

-->

Fixes #
  • Loading branch information
matthew44-mappable authored Sep 24, 2024
1 parent f23e030 commit be5e155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/MMapSearchControl/MMapSuggest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class MMapSuggest extends mappable.MMapComplexEntity<MMapSuggestProps> {

private _addSuggestItems(suggest: SuggestResponse, onSuggestClick: MMapSuggestProps['onSuggestClick']) {
suggest.forEach((suggestItem) => {
const searchParams = {uri: suggestItem.uri, text: suggestItem.title.text};
const searchParams = {uri: suggestItem.uri, text: suggestItem.value};

this.addChild(
new MMapSuggestItem({
Expand Down

0 comments on commit be5e155

Please sign in to comment.