Skip to content

Commit

Permalink
Check for operand localId
Browse files Browse the repository at this point in the history
  • Loading branch information
elsaperelli committed Dec 12, 2023
1 parent d14f63f commit b275297
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/calculation/ClauseResultsHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b275297

Please sign in to comment.