From 83ca91d3b8400a8e3874194a84fc50972e36ca41 Mon Sep 17 00:00:00 2001 From: cha0s Date: Thu, 25 Jun 2020 09:52:57 -0500 Subject: [PATCH] fix: guard against empty adds --- packages/behavior/context.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/behavior/context.js b/packages/behavior/context.js index 70ff9af..e3efba2 100644 --- a/packages/behavior/context.js +++ b/packages/behavior/context.js @@ -19,7 +19,9 @@ export default class Context { } add(key, value, type = 'undefined') { - this.map.set(key, [value, type]); + if (key) { + this.map.set(key, [value, type]); + } } addObjectMap(map) {