Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Range slider limit check error #439

Open
jolevesq opened this issue Aug 30, 2022 · 0 comments
Open

Range slider limit check error #439

jolevesq opened this issue Aug 30, 2022 · 0 comments
Labels
bug Something isn't working plugin-range-slider Issues related to slider plugin

Comments

@jolevesq
Copy link
Contributor

When the range slider initialize, it will check for limits on the ESRI layer. Do not throw error if the layer has no limits

range-slider.js:formatted:12945 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '0')
    at range-slider.js:formatted:12945:73
    at Array.filter (<anonymous>)
    at range-slider.js:formatted:12945:47
Promise.all(e).then((e=>{
                            if (!1 !== (e = e.filter((t=>-1 !== t.limits[0])))[0]) {
                                this._config.limit.min = Math.min.apply(null, e.map((t=>t.limits)).flat()),
                                this._config.limit.max = Math.max.apply(null, e.map((t=>t.limits)).flat());
                                let n = [];
@jolevesq jolevesq added bug Something isn't working plugin-range-slider Issues related to slider plugin labels Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working plugin-range-slider Issues related to slider plugin
Projects
None yet
Development

No branches or pull requests

1 participant