Map.get returns undefined and not null on empty

0d1e96cc174a2ab063727fbb3734c309b78de57a

Honey Tree <kalakanlogs@proton.me>

1 files changed, +1 -1Showing whitespace changes
public/scripts/world-info.js+1 -1
@@ -313,7 +313,7 @@ class WorldInfoBuffer {
313 /**313 /**
314 * Get the externally activated version of the entry, if there is one.314 * Get the externally activated version of the entry, if there is one.
315 * @param {object} entry WI entry to check315 * @param {object} entry WI entry to check
316 * @returns {object|null} the external version if the entry is forcefully activated, null otherwise316 * @returns {object|undefined} the external version if the entry is forcefully activated, undefined otherwise
317 */317 */
318 getExternallyActivated(entry) {318 getExternallyActivated(entry) {
319 // Entries could be copied with structuredClone, so we need to compare them by string representation319 // Entries could be copied with structuredClone, so we need to compare them by string representation