We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bb59d1 commit f185d90Copy full SHA for f185d90
1 file changed
packages/mgt-components/src/components/mgt-search-results/mgt-search-results.ts
@@ -461,7 +461,7 @@ export class MgtSearchResults extends MgtTemplatedTaskComponent {
461
462
if (this.response && this.hasTemplate('default')) {
463
renderedTemplate = this.renderTemplate('default', this.response) || html``;
464
- } else if (this.response?.value[0]?.hitsContainers[0]) {
+ } else if (this.response?.value[0]?.hitsContainers[0]?.hits) {
465
renderedTemplate = html`${this.response?.value[0]?.hitsContainers[0]?.hits?.map(result =>
466
this.renderResult(result)
467
)}`;
0 commit comments