From b275297e005ed237f1bb6eba411b65deec5396c8 Mon Sep 17 00:00:00 2001 From: Elsa Date: Tue, 12 Dec 2023 14:35:37 -0500 Subject: [PATCH] Check for operand localId --- src/calculation/ClauseResultsHelpers.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calculation/ClauseResultsHelpers.ts b/src/calculation/ClauseResultsHelpers.ts index 0f00638a..b285239c 100644 --- a/src/calculation/ClauseResultsHelpers.ts +++ b/src/calculation/ClauseResultsHelpers.ts @@ -219,7 +219,10 @@ export function findAllLocalIdsInStatement( // If so, we will want to treat this as a 'Not Equivalent' or 'Not Equal' expression which we can do so // by mapping the 'Equal' or 'Equivalent' clause localId to that of the 'Not' clause if (statement.operand) { - if (statement.operand.type === 'Equivalent' || statement.operand.type === 'Equal') { + if ( + statement.operand.type === 'Equivalent' || + (statement.operand.type === 'Equal' && statement.operand.localId) + ) { emptyResultClauses.push({ lib: libraryName, aliasLocalId: statement.operand.localId,