mirror of
https://github.com/kremalicious/umami.git
synced 2025-01-23 16:53:40 +01:00
Merge pull request #2038 from AkashRajpurohit/fix/filter-null-values-on-metric-table
fix: 🩹 null value check for metric data
This commit is contained in:
commit
345dee5720
@ -73,7 +73,10 @@ export function MetricsTable({
|
||||
|
||||
const filteredData = useMemo(() => {
|
||||
if (data) {
|
||||
let items = percentFilter(dataFilter ? dataFilter(data, filterOptions) : data);
|
||||
const dataWithoutNullValues = data.filter(val => val.x !== null);
|
||||
let items = percentFilter(
|
||||
dataFilter ? dataFilter(dataWithoutNullValues, filterOptions) : dataWithoutNullValues,
|
||||
);
|
||||
if (limit) {
|
||||
items = items.filter((e, i) => i < limit);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user