ngageoint / opensphere

OpenSphere
Apache License 2.0
185 stars 90 forks source link

fix(state): allow filter sources to be null #1395

Closed schmidtk closed 2 years ago

schmidtk commented 2 years ago

In the ESM transition, this.sources was initialized as an empty array. This fixed a compiler error (class properties must be defined in the constructor) but caused a bug with applications expecting the sources to be null/undefined if setSources was never called. This change represents the original behavior, which will process filters in saveInternal if the sources array is not defined.