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