mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Map.get returns undefined and not null on empty
This commit is contained in:
@ -313,7 +313,7 @@ class WorldInfoBuffer {
|
|||||||
/**
|
/**
|
||||||
* Get the externally activated version of the entry, if there is one.
|
* Get the externally activated version of the entry, if there is one.
|
||||||
* @param {object} entry WI entry to check
|
* @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) {
|
getExternallyActivated(entry) {
|
||||||
// Entries could be copied with structuredClone, so we need to compare them by string representation
|
// Entries could be copied with structuredClone, so we need to compare them by string representation
|
||||||
|
Reference in New Issue
Block a user