fix: add UID filter to /insights/routing (#20356)
This commit is contained in:
1 parent
a9ddea9184
commit
f699fd1732
8 files changed
+78
-14
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user