sr-npm 1.7.1333 → 1.7.1334
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 +1 -1
- package/public/primarySearchUtils.js +11 -2
package/package.json
CHANGED
|
@@ -133,8 +133,12 @@ try{
|
|
|
133
133
|
count = _$w(GLOBAL_SECTIONS_SELECTORS.JOBS_DATASET).getTotalCount();
|
|
134
134
|
}
|
|
135
135
|
catch (error) {
|
|
136
|
-
if(error.message
|
|
136
|
+
if(error.message==="Cannot read properties of undefined (reading 'total')")
|
|
137
137
|
{
|
|
138
|
+
console.warn('failed to get total count due to known error, using 0')
|
|
139
|
+
|
|
140
|
+
}
|
|
141
|
+
else{
|
|
138
142
|
console.error('Failed to get total count:', error);
|
|
139
143
|
}
|
|
140
144
|
}
|
|
@@ -153,7 +157,12 @@ catch (error) {
|
|
|
153
157
|
count = _$w(GLOBAL_SECTIONS_SELECTORS.JOBS_DATASET).getTotalCount();
|
|
154
158
|
}
|
|
155
159
|
catch (error) {
|
|
156
|
-
if(error.message
|
|
160
|
+
if(error.message==="Cannot read properties of undefined (reading 'total')")
|
|
161
|
+
{
|
|
162
|
+
console.warn('failed to get total count due to known error, using 0')
|
|
163
|
+
|
|
164
|
+
}
|
|
165
|
+
else
|
|
157
166
|
{
|
|
158
167
|
console.error('Failed to get total count:', error);
|
|
159
168
|
}
|