SearchKit - Fix angular console error when totalCount is not given
authorColeman Watts <coleman@civicrm.org>
Fri, 10 Jun 2022 16:37:56 +0000 (12:37 -0400)
committerColeman Watts <coleman@civicrm.org>
Sat, 11 Jun 2022 13:54:14 +0000 (09:54 -0400)
Before: Error: [$compile:nonassign] Expression 'undefined' in attribute 'totalCount' used with directive 'crmSearchDisplayTable' is non-assignable!

After: Fixed, and totalCount still functions correctly for its indended purpose with SearchSegments.

ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTable.component.js

index b356bfffa84917b5ea8cee521e85628da38a8005..9052839ba4b5861b00cbbead5c87f1a868c29f5b 100644 (file)
@@ -8,7 +8,7 @@
       display: '<',
       settings: '<',
       filters: '<',
-      totalCount: '='
+      totalCount: '<'
     },
     require: {
       afFieldset: '?^^afFieldset'