From 211bb6f2229a21c9f155c137566f09c162cb4aaf Mon Sep 17 00:00:00 2001 From: Scott Newcomer Date: Thu, 8 Jul 2021 09:23:19 -0500 Subject: [PATCH] Fix Ember tracking issue on set (#131) --- src/utils/key-in-object.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/key-in-object.ts b/src/utils/key-in-object.ts index 4fb0ff8..8873fec 100644 --- a/src/utils/key-in-object.ts +++ b/src/utils/key-in-object.ts @@ -6,7 +6,7 @@ export default function keyInObject(obj: any, key: string): boolean { } if (!keys.length) { - return !!obj[baseKey]; + return baseKey in obj; } let value = obj[baseKey];