Skip to content

Commit

Permalink
fix: type errors for unsafe access (#5504)
Browse files Browse the repository at this point in the history
  • Loading branch information
djbarnwal authored Aug 22, 2024
1 parent fcbfa88 commit 075e80e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function mergeFilters(
if (likeExprMap.has(ident)) return;
likeExprMap.set(ident, e);
} else {
if (inExprMap.has(ident) || !!e.cond?.exprs?.[1].subquery) return;
if (inExprMap.has(ident) || !!e.cond?.exprs?.[1]?.subquery) return;
inExprMap.set(ident, e);
}
});
Expand All @@ -51,7 +51,7 @@ export function mergeFilters(
e.cond?.op === V1Operation.OPERATION_NLIKE
)
return;
if (!inExprMap.has(ident) || !!e.cond?.exprs?.[1].subquery) return;
if (!inExprMap.has(ident) || !!e.cond?.exprs?.[1]?.subquery) return;

/**
* We take an intersection of the values in the IN expressions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
</div>
</div>
</div>
{:else if comparing === "dimension" && formattedData.rowCount === 1}
{:else if comparing === "dimension" && formattedData?.rowCount === 1}
<div class="w-full h-full">
<div class="flex flex-col items-center h-full text-sm">
<div class="text-gray-600">No search results to show</div>
Expand Down

1 comment on commit 075e80e

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.