diff --git a/frontend/app/components/Dashboard/Widgets/CardSessionsByList.tsx b/frontend/app/components/Dashboard/Widgets/CardSessionsByList.tsx index 5f2efe77d..4ebb9e814 100644 --- a/frontend/app/components/Dashboard/Widgets/CardSessionsByList.tsx +++ b/frontend/app/components/Dashboard/Widgets/CardSessionsByList.tsx @@ -57,7 +57,7 @@ function CardSessionsByList({ list, selected, paginated, onClickHandler = () =>
{row.displayName} - {row.sessionCount} + {row.sessionCount}
{ - const { key, operatorOptions, category, icon, label, options, ...cleaned } = f; - return { ...cleaned, type: f.key, value: [] }; - }) + filters: [], }; + if (metric.metricOf === FilterKey.FETCH) { + baseFilter.filters = [ + { + key: FilterKey.FETCH_URL, + operator: 'is', + value: [data.name], + type: FilterKey.FETCH_URL, + } + ]; + } + + + const { key, operatorOptions, category, icon, label, options, ...finalFilter } = baseFilter; setSelected(data.name);