@bytebrand/fe-ui-core 4.2.158 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.2.158",
3
+ "version": "4.2.160",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -85,7 +85,6 @@ interface IVehicleSmallCardProps {
85
85
  isAlternative?: boolean;
86
86
  typeAlternative?: string;
87
87
  index?: number;
88
- currentPage?: number;
89
88
  }
90
89
 
91
90
  const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
@@ -145,8 +144,7 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
145
144
  minimizeData = false,
146
145
  isAlternative = false,
147
146
  typeAlternative,
148
- index,
149
- currentPage
147
+ index
150
148
  } = props;
151
149
 
152
150
  const combineRefAlternative = isAlternative || isReferenceSearch;
@@ -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 ((prevProps.location.search !== location.search) && !_startsWith(location.search, '?pageNumber') && !isReferenceSearch) {
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
  });