GNimrodG / simrail-map-optimized

A feature rich and optimized online map for Simrail.
https://smo.data-unknown.com
GNU Affero General Public License v3.0
3 stars 1 forks source link

TypeError: r.map(...).toSorted is not a function #42

Open sentry-io[bot] opened 2 months ago

sentry-io[bot] commented 2 months ago

Sentry Issue: SMO-9

TypeError: r.map(...).toSorted is not a function
  at SearchBar (../../src/components/SearchBar.tsx:38:8)
...
(9 additional frame(s) were not displayed)
GNimrodG commented 2 months ago

The problem is that Array.prototype.toSorted is a relatively new function and isn't polyfilled current in the project. https://caniuse.com/mdn-javascript_builtins_array_tosorted