fix: add UID filter to /insights/routing (#20356)

This commit is contained in:
Eunjae Lee authored and GitHub committed 2025-03-26 09:52:40 +00:00
1 parent a9ddea9184
commit f699fd1732
8 files changed
+78 -14

No files matched your search

+2 -2
View File
@@ -6,7 +6,7 @@ import {
isNumberFilterValue,
} from "./utils";
type makeWhereClauseProps = {
type MakeWhereClauseProps = {
columnName: string;
filterValue: FilterValue;
json?: true | { path: string[] };
@@ -20,7 +20,7 @@ export function makeOrderBy(sorting: SortingState) {
}));
}
export function makeWhereClause(props: makeWhereClauseProps) {
export function makeWhereClause(props: MakeWhereClauseProps) {
const { columnName, filterValue } = props;
const isJson = props.json === true || (typeof props.json === "object" && props.json.path?.length > 0);
const jsonPath = isJson && typeof props.json === "object" ? props.json.path : undefined;