@salesforcedevs/dx-components 1.3.254-alpha.0 → 1.3.254-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "1.3.254-alpha.0",
3
+ "version": "1.3.254-alpha.1",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -398,12 +398,6 @@ export default class SearchResults extends LightningElement {
398
398
  this.totalPages = numberOfPages;
399
399
  this.totalResults = event.detail.results.totalCount;
400
400
 
401
- if (!this.totalResults) {
402
- this.hasResults = false;
403
- } else {
404
- this.hasResults = true;
405
- }
406
-
407
401
  this.query = event.detail.query.q ?? "";
408
402
  this.hasFilters = event.detail.query.facets.some((f: any) => {
409
403
  return f.currentValues.some((cv: any) => {
@@ -415,6 +409,12 @@ export default class SearchResults extends LightningElement {
415
409
  });
416
410
 
417
411
  Coveo.$$(root).on(Coveo.QueryEvents.deferredQuerySuccess, async () => {
412
+ if (!this.totalResults) {
413
+ this.hasResults = false;
414
+ } else {
415
+ this.hasResults = true;
416
+ }
417
+
418
418
  // wait specified time to ensure breadcrumbs are rendered before processing them
419
419
  await pollUntil(
420
420
  () => {