mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +01:00
Updated filtering logic.
This commit is contained in:
parent
6ee9bb07da
commit
810b0639c8
14 changed files with 97 additions and 83 deletions
|
|
@ -11,7 +11,7 @@ import {
|
|||
import PopupForm from 'app/(main)/reports/[reportId]/PopupForm';
|
||||
import FieldFilterEditForm from 'app/(main)/reports/[reportId]/FieldFilterEditForm';
|
||||
import { OPERATOR_PREFIXES } from 'lib/constants';
|
||||
import { operatorEquals, parseParameterValue } from 'lib/params';
|
||||
import { isSearchOperator, parseParameterValue } from 'lib/params';
|
||||
import styles from './FilterTags.module.css';
|
||||
|
||||
export function FilterTags({
|
||||
|
|
@ -66,7 +66,7 @@ export function FilterTags({
|
|||
}
|
||||
const label = fields.find(f => f.name === key)?.label;
|
||||
const { operator, value } = parseParameterValue(params[key]);
|
||||
const paramValue = operatorEquals(operator) ? formatValue(value, key) : value;
|
||||
const paramValue = isSearchOperator(operator) ? formatValue(value, key) : value;
|
||||
|
||||
return (
|
||||
<PopupTrigger key={key}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue