fix: guard against empty adds
This commit is contained in:
parent
a7b34bfcd1
commit
83ca91d3b8
|
@ -19,7 +19,9 @@ export default class Context {
|
||||||
}
|
}
|
||||||
|
|
||||||
add(key, value, type = 'undefined') {
|
add(key, value, type = 'undefined') {
|
||||||
this.map.set(key, [value, type]);
|
if (key) {
|
||||||
|
this.map.set(key, [value, type]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
addObjectMap(map) {
|
addObjectMap(map) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user