Skip to content

Commit

Permalink
fix configurable bug in Filter plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
warm-coolguy committed Jan 16, 2024
1 parent b11f971 commit 2febd6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/plugins/Filter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## unpublished

- Fix: Configurations without time element could sometimes errored on filtering operations.

## 1.1.0

- Feature: Improved implementation to make plugin SPA-ready.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const doesFeaturePassTimeFilter = (
feature: Feature
): boolean => {
// radioId=0 means 'no restriction'
if (!time || time[layerId].radioId === 0) {
if (!time || !time[layerId] || time[layerId].radioId === 0) {
return true
}
const { targetProperty, radioId, pattern } = time[layerId]
Expand Down

0 comments on commit 2febd6f

Please sign in to comment.