SnailyCAD / snaily-cadv4

💻 An open source Computer Aided Dispatch (CAD) for FiveM, this is a web based integration for communities who love police roleplaying and dispatching. Discord: https://discord.gg/eGnrPqEH7U
https://docs.snailycad.org/docs/getting-started
MIT License
140 stars 84 forks source link

`t.map is not a function` when changing smart motorway signs #1818

Closed jxckUK closed 11 months ago

jxckUK commented 11 months ago

What version of Node.js are you using?

18.17.0

What operating system are you using?

Ubuntu

What version of SnailyCAD are you currently using?

v1.73.2 6f1762a

Describe the Bug

When changing a smart motorway sign and leaving any lane above as the default value it will cause the live map to present a client error for all users until the resource is reset.

Eg. changing lane 1 only will work, but changing 3 only will result in a crash.

Expected Behavior

Changing a single lane without changing the other values should not result in an error.

To Reproduce

image

casperiv0 commented 11 months ago

This is partially fixed now. Will still have to verify something later today or tomorrow

casperiv0 commented 11 months ago

tested and should be working again