Skip to content

Commit

Permalink
Fix setting an undefined chat state value.
Browse files Browse the repository at this point in the history
  • Loading branch information
legastero committed Oct 31, 2019
1 parent 27ba757 commit f0b6c2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/jxt/Types.ts
Expand Up @@ -662,7 +662,9 @@ export function childEnum(
return defaultValue;
},
exporter(xml, value) {
findOrCreate(xml, namespace, valueNames.get(value)!);
if (valueNames.has(value)) {
findOrCreate(xml, namespace, valueNames.get(value)!);
}
}
};
}
Expand Down

0 comments on commit f0b6c2f

Please sign in to comment.