Skip to content

Commit

Permalink
Merge pull request #4179 from microsoft-search/personacard-mgt-fix
Browse files Browse the repository at this point in the history
Fix for mgt-toolkit loading properly for toolkit people card  #4163
  • Loading branch information
wobba authored Jan 8, 2025
2 parents 1064a49 + 9e23f10 commit 5c549d9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,10 @@ export default class SearchResultsWebPart extends BaseWebPart<ISearchResultsWebP
// Web components are only defined once.
await this.templateService.registerWebComponents(this.availableWebComponentDefinitions, this.instanceId);

if(this.properties.layoutProperties?.showPersonaCard){
this.properties.useMicrosoftGraphToolkit = true;
}

// Initializes MS Graph Toolkit
if (this.properties.useMicrosoftGraphToolkit) {
await loadMsGraphToolkit(this.context);
Expand Down

0 comments on commit 5c549d9

Please sign in to comment.