Skip to content

Commit eadd1c0

Browse files
committed
Use fieldValue func for filters
1 parent 81628fd commit eadd1c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/sample-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ frontend:
589589
- id: CollectionTime
590590
name: Collection Time
591591
tooltip: Reception time of the record by the collector.
592-
calculated: multiply(TimeReceived,1000),
592+
calculated: multiply(TimeReceived,1000)
593593
field: TimeReceived
594594
default: false
595595
width: 15

web/src/components/drawer/record/record-panel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ export const RecordPanel: React.FC<RecordDrawerProps> = ({
100100
);
101101

102102
const getFilter = (col: Column) => {
103-
if (record && col.value) {
104-
const value = col.value(record);
103+
if (record && col.fieldValue) {
104+
const value = col.fieldValue(record);
105105
switch (col.id) {
106106
case ColumnsId.endtime:
107107
return getTimeRangeFilter(col, value);

0 commit comments

Comments
 (0)