From 0d1e96cc174a2ab063727fbb3734c309b78de57a Mon Sep 17 00:00:00 2001 From: Honey Tree Date: Thu, 10 Oct 2024 11:44:13 -0300 Subject: [PATCH] Map.get returns undefined and not null on empty --- public/scripts/world-info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index 5c7a952f4..ccc5f0d4e 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -313,7 +313,7 @@ class WorldInfoBuffer { /** * Get the externally activated version of the entry, if there is one. * @param {object} entry WI entry to check - * @returns {object|null} the external version if the entry is forcefully activated, null otherwise + * @returns {object|undefined} the external version if the entry is forcefully activated, undefined otherwise */ getExternallyActivated(entry) { // Entries could be copied with structuredClone, so we need to compare them by string representation