Revert optional chaining to enhance life

To close #252
This commit is contained in:
Dave Conway-Jones 2023-11-02 14:51:53 +00:00
parent e2f84d786d
commit d96a0eaa97
No known key found for this signature in database
GPG Key ID: 1DDB0E91A28C2643
4 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,6 @@
### Change Log for Node-RED Worldmap ### Change Log for Node-RED Worldmap
- v4.2.1 - Revert use of optional chaining to extend life slightly. Issue #252
- v4.2.0 - Let icons also be inline images data:image... - v4.2.0 - Let icons also be inline images data:image...
- v4.1.0 - Add optional SOG, COG, altft, altm input properties. - v4.1.0 - Add optional SOG, COG, altft, altm input properties.
- v4.0.0 - Breaking - Better context menu variable substitution and retention - v4.0.0 - Breaking - Better context menu variable substitution and retention

View File

@ -13,6 +13,7 @@ Feel free to [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%
### Updates ### Updates
- v4.2.1 - Revert use of optional chaining to extend life slightly. Issue #252
- v4.2.0 - Let icons also be inline images data:image... - v4.2.0 - Let icons also be inline images data:image...
- v4.1.0 - Add optional SOG, COG, altft, altm input properties. - v4.1.0 - Add optional SOG, COG, altft, altm input properties.
- v4.0.0 - Breaking - Better context menu variable substitution and retention - v4.0.0 - Breaking - Better context menu variable substitution and retention

View File

@ -1,6 +1,6 @@
{ {
"name": "node-red-contrib-web-worldmap", "name": "node-red-contrib-web-worldmap",
"version": "4.2.0", "version": "4.2.1",
"description": "A Node-RED node to provide a web page of a world map for plotting things on.", "description": "A Node-RED node to provide a web page of a world map for plotting things on.",
"dependencies": { "dependencies": {
"@turf/bezier-spline": "~6.5.0", "@turf/bezier-spline": "~6.5.0",

View File

@ -126,7 +126,7 @@ module.exports = function(RED) {
if (message.action === "draw") { if (message.action === "draw") {
delete message.action; delete message.action;
delete message.type; delete message.type;
delete message.options?.pane; if (message.options) { delete message.options.pane; }
allPoints[message.name] = RED.util.cloneMessage(message); allPoints[message.name] = RED.util.cloneMessage(message);
sendToRest(message,client.id); sendToRest(message,client.id);
} }