From bcefbd7aab5f33f93d626c6421a1a1218c1a91a2 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 31 Jul 2019 01:33:23 +0200 Subject: idb-bridge: test cases, package structure and missing functionality --- packages/idb-bridge/src/util/makeStoreKeyValue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/idb-bridge/src/util/makeStoreKeyValue.ts') diff --git a/packages/idb-bridge/src/util/makeStoreKeyValue.ts b/packages/idb-bridge/src/util/makeStoreKeyValue.ts index 4f45e0d8a..845634ac2 100644 --- a/packages/idb-bridge/src/util/makeStoreKeyValue.ts +++ b/packages/idb-bridge/src/util/makeStoreKeyValue.ts @@ -18,7 +18,7 @@ export function makeStoreKeyValue( autoIncrement: boolean, keyPath: KeyPath | null, ): StoreKeyResult { - const haveKey = key !== undefined && key !== null; + const haveKey = key !== null && key !== undefined; const haveKeyPath = keyPath !== null && keyPath !== undefined; // This models a decision table on (haveKey, haveKeyPath, autoIncrement) -- cgit v1.2.3