From 2f223f38eaafb72a1b8ed5fe8bdb38fd82ceca16 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 10 Jun 2022 12:37:56 -0400 Subject: [PATCH] SearchKit - Fix angular console error when totalCount is not given 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. --- .../crmSearchDisplayTable/crmSearchDisplayTable.component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTable.component.js b/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTable.component.js index b356bfffa8..9052839ba4 100644 --- a/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTable.component.js +++ b/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTable.component.js @@ -8,7 +8,7 @@ display: '<', settings: '<', filters: '<', - totalCount: '=' + totalCount: '<' }, require: { afFieldset: '?^^afFieldset' -- 2.25.1