From d96a0eaa9704e148150c6c27d0479bc504a1a6e9 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Thu, 2 Nov 2023 14:51:53 +0000 Subject: [PATCH] Revert optional chaining to enhance life To close #252 --- CHANGELOG.md | 1 + README.md | 1 + package.json | 2 +- worldmap.js | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d90d1cc..af62feb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### 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.1.0 - Add optional SOG, COG, altft, altm input properties. - v4.0.0 - Breaking - Better context menu variable substitution and retention diff --git a/README.md b/README.md index 3deff31..803c0ab 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ Feel free to [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D% ### 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.1.0 - Add optional SOG, COG, altft, altm input properties. - v4.0.0 - Breaking - Better context menu variable substitution and retention diff --git a/package.json b/package.json index 7330fd5..9384916 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "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.", "dependencies": { "@turf/bezier-spline": "~6.5.0", diff --git a/worldmap.js b/worldmap.js index 31c4a60..7a9d21b 100644 --- a/worldmap.js +++ b/worldmap.js @@ -126,7 +126,7 @@ module.exports = function(RED) { if (message.action === "draw") { delete message.action; delete message.type; - delete message.options?.pane; + if (message.options) { delete message.options.pane; } allPoints[message.name] = RED.util.cloneMessage(message); sendToRest(message,client.id); }