Kruptein / PlanarAlly

A companion tool for when you travel into the planes.
https://www.planarally.io/
MIT License
392 stars 71 forks source link

bug(Polygon): Fix creation of new polygons breaking [dev] #1260

Closed Kruptein closed 1 year ago

Kruptein commented 1 year ago

A change was made to the way polygons are sent along the websocket and 1 function was not changed to take this into account, doing a wrong operation on the polygon data, breaking its representation in the database.

This PR fixes that function. It also adds some more safeguards to handle invalid shape data at the client side so that it doesn't completely crash, but skip the shape instead.