Started removing scope from creature doc

This commit is contained in:
Stefan Zermatten
2022-06-24 10:50:35 +02:00
parent b2f89eceee
commit 9dd84a83d2
2 changed files with 1 additions and 73 deletions

View File

@@ -107,6 +107,7 @@ class LoadedCreature {
}
changeMap(id, fields, map) {
const doc = map.get(id);
if (!doc) return;
for (let key in fields) {
if (key === undefined) {
delete doc[key];