@recursyve/nice-data-filter-kit 15.3.3 → 15.3.4
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/esm2020/lib/components/nice-filter-view/store/nice-filter-view.service.mjs +2 -2
- package/fesm2015/recursyve-nice-data-filter-kit.mjs +2 -2
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3254,7 +3254,7 @@ class NiceFilterViewService {
|
|
|
3254
3254
|
removeRule(id) {
|
|
3255
3255
|
const { filterParameters } = this.store.getValue();
|
|
3256
3256
|
const currentQuery = filterParameters.rules?.[0];
|
|
3257
|
-
const oldRule = currentQuery
|
|
3257
|
+
const oldRule = currentQuery?.rules?.find((r) => r.id === id);
|
|
3258
3258
|
if (!oldRule) {
|
|
3259
3259
|
return;
|
|
3260
3260
|
}
|