@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.
@@ -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.rules.find((r) => r.id === id);
3257
+ const oldRule = currentQuery?.rules?.find((r) => r.id === id);
3258
3258
  if (!oldRule) {
3259
3259
  return;
3260
3260
  }