abmp-npm 1.1.48 → 1.1.49
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/pages/Home.js +2 -9
package/package.json
CHANGED
package/pages/Home.js
CHANGED
|
@@ -335,7 +335,8 @@ const homePageOnReady = async ({
|
|
|
335
335
|
try {
|
|
336
336
|
await Promise.all([
|
|
337
337
|
fetchFilterData().then(() => setFilterFromParams(false)),
|
|
338
|
-
|
|
338
|
+
//TODO: remove this workaround to fix issue with SSR showing invalid results
|
|
339
|
+
renderingEnv === 'backend' ? Promise.resolve() : searchPromise(),
|
|
339
340
|
]);
|
|
340
341
|
} catch (error) {
|
|
341
342
|
logMessage(`[applyFilterToUI][${renderingEnv}] failed with error:`, error);
|
|
@@ -355,14 +356,6 @@ const homePageOnReady = async ({
|
|
|
355
356
|
logMessage(`[updateResults][${renderingEnv}] clearing timeout type ${timeoutType}`);
|
|
356
357
|
clearTimeout(debounceTimeout[timeoutType]);
|
|
357
358
|
}
|
|
358
|
-
if (renderingEnv === 'backend') {
|
|
359
|
-
//TODO: remove this workaround to fix issue with SSR showing invalid results
|
|
360
|
-
logMessage(
|
|
361
|
-
`[updateResults][${renderingEnv}] backend environment, changing state to loadingState`
|
|
362
|
-
);
|
|
363
|
-
multiStateBoxSelector.changeState('loadingState');
|
|
364
|
-
return;
|
|
365
|
-
}
|
|
366
359
|
searchResults = await search({
|
|
367
360
|
filter,
|
|
368
361
|
pagination,
|