@@ -10,8 +10,7 @@ import {
1010 matchesPeopleSearchNameWords ,
1111 mergePeopleSearchPerson ,
1212 sortPeopleSearchPeople ,
13- type PeopleSearchPerson ,
14- type PeopleSearchRelationshipLabel
13+ type PeopleSearchPerson
1514} from './peopleSearchHelpers'
1615
1716export interface PeopleSearchSelectDetail {
@@ -96,7 +95,7 @@ export class PeopleSearch extends LitElement {
9695 this . _user = authn . currentUser ( )
9796 this . _resetDiscoveryState ( )
9897 if ( this . _user ) {
99- void this . _ensureDiscovery ( )
98+ this . _ensureDiscovery ( )
10099 }
101100 }
102101
@@ -109,7 +108,7 @@ export class PeopleSearch extends LitElement {
109108 }
110109
111110 if ( ! this . _discoveryPromise ) {
112- void this . _ensureDiscovery ( )
111+ this . _ensureDiscovery ( )
113112 }
114113
115114 const suggestions = this . _buildSuggestions ( query )
@@ -162,7 +161,7 @@ export class PeopleSearch extends LitElement {
162161 if ( changedProperties . has ( 'store' ) && ! changedProperties . has ( '_user' ) ) {
163162 this . _resetDiscoveryState ( )
164163 if ( this . _user ) {
165- void this . _ensureDiscovery ( )
164+ this . _ensureDiscovery ( )
166165 }
167166 }
168167 }
@@ -248,11 +247,10 @@ export class PeopleSearch extends LitElement {
248247 this . _updateStatus ( this . _query , 0 )
249248
250249 this . _discoveryPromise = ( async ( ) => {
251- const renderPerson = async ( person : PeopleSearchPerson ) => {
252- const merged = this . _mergePerson ( person )
250+ const renderPerson = async ( person : PeopleSearchPerson ) : Promise < void > => {
251+ this . _mergePerson ( person )
253252 this . _refreshComboboxOptions ( this . _query )
254253 this . _updateStatus ( this . _query , this . _buildSuggestions ( this . _query ) . length )
255- return merged
256254 }
257255
258256 await discoverPeopleSearchEntries ( {
@@ -283,7 +281,7 @@ export class PeopleSearch extends LitElement {
283281
284282 private _handleComboboxFocusIn ( ) {
285283 if ( ! this . _discoveryPromise && this . _user ) {
286- void this . _ensureDiscovery ( )
284+ this . _ensureDiscovery ( )
287285 }
288286 this . _refreshComboboxOptions ( this . _query )
289287 this . _updateStatus ( this . _query , this . _buildSuggestions ( this . _query ) . length )
@@ -332,4 +330,4 @@ export class PeopleSearch extends LitElement {
332330 </ div >
333331 `
334332 }
335- }
333+ }
0 commit comments