@bytebrand/fe-ui-core 4.2.159 → 4.2.160
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
|
@@ -68,7 +68,11 @@ class FiltersContainer extends React.Component<IFiltersContainerProps, {}> {
|
|
|
68
68
|
|
|
69
69
|
componentDidUpdate(prevProps: IFiltersContainerProps) {
|
|
70
70
|
const { location, filters, resetFiltersToDefault, clearSearchState, search, activeSorting, setActiveSorting, isReferenceSearch } = this.props;
|
|
71
|
-
if (
|
|
71
|
+
if (
|
|
72
|
+
(prevProps.location.search !== location.search) &&
|
|
73
|
+
!_startsWith(location.search, '?pageNumber') &&
|
|
74
|
+
!isReferenceSearch)
|
|
75
|
+
{
|
|
72
76
|
const queryFromFilters = this.getQueryFromFilters();
|
|
73
77
|
const prevQueryFromFilters = ['pageNumber', 'activeSort'].reduce((url, param) => url.replace(new RegExp(`(^${param}=\\w*&|&${param}=\\w*)`), ''), prevProps.location.search.slice(1));
|
|
74
78
|
const paramsFromQuery = qs.parse(location.search, { ignoreQueryPrefix: true });
|
|
@@ -394,7 +398,7 @@ class FiltersContainer extends React.Component<IFiltersContainerProps, {}> {
|
|
|
394
398
|
error: isErrorAlternativeField,
|
|
395
399
|
onChange: onAlternativeRedirect
|
|
396
400
|
};
|
|
397
|
-
|
|
401
|
+
console.log('isErrorAlternativeField', isErrorAlternativeField);
|
|
398
402
|
return (
|
|
399
403
|
<div className={styles.filters}>
|
|
400
404
|
{isAlternative ? (
|
|
@@ -426,9 +430,10 @@ const removeUnknownOptions = (options: any) => {
|
|
|
426
430
|
// export default React.memo(FiltersContainer);
|
|
427
431
|
|
|
428
432
|
export default React.memo(FiltersContainer, (props, nextProps) => {
|
|
429
|
-
const { t, location, filters, aggregation } = props;
|
|
433
|
+
const { t, location, filters, aggregation, isErrorAlternativeField } = props;
|
|
430
434
|
return t === nextProps.t &&
|
|
431
435
|
location.search === nextProps.location.search &&
|
|
436
|
+
isErrorAlternativeField === nextProps.isErrorAlternativeField &&
|
|
432
437
|
isEqual(aggregation, nextProps.aggregation) &&
|
|
433
438
|
isEqual(filters.MMS_GROUPS, nextProps.filters.MMS_GROUPS);
|
|
434
439
|
});
|