diff --git a/packages/core/src/common/utils.ts b/packages/core/src/common/utils.ts index 7d5aab546d..62ce537913 100644 --- a/packages/core/src/common/utils.ts +++ b/packages/core/src/common/utils.ts @@ -35,8 +35,8 @@ export function assertFound(promise: Promise): Promise< * Compare ID values for equality, taking into account the fact that they may not be of matching types * (string or number). */ -export function idsAreEqual(id1?: ID, id2?: ID): boolean { - if (id1 === undefined || id2 === undefined) { +export function idsAreEqual(id1?: ID | null, id2?: ID | null): boolean { + if (id1 == null || id2 == null) { return false; } return id1.toString() === id2.toString();