sccoreui 6.5.12 → 6.5.13

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.
@@ -418,12 +418,14 @@ function ParentForGrid(props) {
418
418
  return;
419
419
  }
420
420
  if (api && gridReadyEvent && (props === null || props === void 0 ? void 0 : props.shouldRefetch)) {
421
- let currentFeature = featureDetails;
422
- if ((_a = props === null || props === void 0 ? void 0 : props.defaultFilters) === null || _a === void 0 ? void 0 : _a.length) {
423
- currentFeature.filterQueries = (0, helper_1.applyDefaultFilters)(props === null || props === void 0 ? void 0 : props.defaultFilters);
424
- setDefaultFilters(props.defaultFilters);
425
- setFeatureDetails(Object.assign(Object.assign({}, featureDetails), { filterQueries: (0, helper_1.applyDefaultFilters)(props === null || props === void 0 ? void 0 : props.defaultFilters) }));
426
- }
421
+ // Always sync filters from props — even when empty (e.g. "All" view)
422
+ // so stale filters from the previous view are cleared
423
+ const newFilterQueries = ((_a = props === null || props === void 0 ? void 0 : props.defaultFilters) === null || _a === void 0 ? void 0 : _a.length)
424
+ ? (0, helper_1.applyDefaultFilters)(props.defaultFilters)
425
+ : [];
426
+ const currentFeature = Object.assign(Object.assign({}, featureDetails), { filterQueries: newFilterQueries });
427
+ setDefaultFilters((props === null || props === void 0 ? void 0 : props.defaultFilters) || []);
428
+ setFeatureDetails(currentFeature);
427
429
  callGrid(currentFeature);
428
430
  }
429
431
  }, [props === null || props === void 0 ? void 0 : props.shouldRefetch]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "6.5.12",
3
+ "version": "6.5.13",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",