Description
The updates of Chrome/Firefox notified here : #3186 cause a problem accessing to maps you don't have access to:
Uncaught (in promise) TypeError: e.layers.flat.filter is not a function
at i (mapstore2.js?61a0fa6655301a6d989b:197)
at mapstore2.js?61a0fa6655301a6d989b:7
at Array.map (<anonymous>)
at Function.p [as mapToProps] (mapstore2.js?61a0fa6655301a6d989b:7)
at r (mapstore2.js?61a0fa6655301a6d989b:24)
at l (mapstore2.js?61a0fa6655301a6d989b:60)
at u (mapstore2.js?61a0fa6655301a6d989b:60)
at mapstore2.js?61a0fa6655301a6d989b:60
at Object.run (mapstore2.js?61a0fa6655301a6d989b:24)
at p.onStateChange (mapstore2.js?61a0fa6655301a6d989b:24)
at Object.notify (mapstore2.js?61a0fa6655301a6d989b:60)
at e.notifyNestedSubs (mapstore2.js?61a0fa6655301a6d989b:60)
at p.notifyNestedSubsOnComponentDidUpdate (mapstore2.js?61a0fa6655301a6d989b:24)
at e.notifyAll (mapstore2.js?61a0fa6655301a6d989b:21)
at r.close (mapstore2.js?61a0fa6655301a6d989b:28)
at r.closeAll (mapstore2.js?61a0fa6655301a6d989b:13)
The error is here:
https://github.com/geosolutions-it/MapStore2/blob/master/web/client/selectors/automapupdate.js#L11
In case of Bug (otherwise remove this paragraph)
Browser Affected
(use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Version Affected
Firefox 62/Chrome 69 only
Steps to reproduce
or (this is currently reproducible only in dev where #3190 needs to be merged)
- Login as user
- Open a map of that user
- Logout
Expected Result
- You should see login prompt
Current Result
- infinite error. An error in console tells there was an error accessing to layers.flat.filter
Description
The updates of Chrome/Firefox notified here : #3186 cause a problem accessing to maps you don't have access to:
The error is here:
https://github.com/geosolutions-it/MapStore2/blob/master/web/client/selectors/automapupdate.js#L11
In case of Bug (otherwise remove this paragraph)
Browser Affected
(use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Version Affected
Firefox 62/Chrome 69 only
Steps to reproduce
or (this is currently reproducible only in dev where #3190 needs to be merged)
Expected Result
Current Result