Skip to content

Range slider limit check error #439

@jolevesq

Description

@jolevesq

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 = [];

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingplugin-range-sliderIssues related to slider plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions