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
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
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]);
|