sr-npm 1.7.1332 → 1.7.1333
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
|
@@ -128,16 +128,13 @@ async function queryPrimarySearchResults(_$w, query) {
|
|
|
128
128
|
await _$w(GLOBAL_SECTIONS_SELECTORS.JOBS_DATASET).setFilter(filter);
|
|
129
129
|
await _$w(GLOBAL_SECTIONS_SELECTORS.JOBS_DATASET).refresh();
|
|
130
130
|
|
|
131
|
-
let count
|
|
131
|
+
let count=0
|
|
132
132
|
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
|
-
count = 0;
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
138
|
console.error('Failed to get total count:', error);
|
|
142
139
|
}
|
|
143
140
|
}
|
|
@@ -156,13 +153,12 @@ catch (error) {
|
|
|
156
153
|
count = _$w(GLOBAL_SECTIONS_SELECTORS.JOBS_DATASET).getTotalCount();
|
|
157
154
|
}
|
|
158
155
|
catch (error) {
|
|
159
|
-
if(error.message
|
|
156
|
+
if(error.message!=="Cannot read properties of undefined (reading 'total')")
|
|
160
157
|
{
|
|
161
|
-
count = 0;
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
158
|
console.error('Failed to get total count:', error);
|
|
165
159
|
}
|
|
160
|
+
|
|
161
|
+
}
|
|
166
162
|
if (count > 0) {
|
|
167
163
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.RESULTS_CONTAINER).expand();
|
|
168
164
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_MULTI_BOX).changeState(PRIMARY_SEARCH_STATES.JOB_RESULTS);
|