diff --git a/web/gui-v2/src/components/ListViewTable.jsx b/web/gui-v2/src/components/ListViewTable.jsx
index 6a423b1..02e6a82 100644
--- a/web/gui-v2/src/components/ListViewTable.jsx
+++ b/web/gui-v2/src/components/ListViewTable.jsx
@@ -793,18 +793,36 @@ const ListViewTable = ({
<>
- {activeFilters.map((filter) => {
+ {activeFilters.flatMap((filter) => {
const [key, values] = filter;
const title = columnKeyMap[key];
- if ( DROPDOWN_COLUMNS.includes(key) ) {
- return - {title}: {values.join(", ")}
;
+ if ( key === 'name' ) {
+ const groups = []
+ const companies = [];
+ values.forEach((entry) => {
+ if ( entry.startsWith("GROUP:") ) {
+ groups.push(overallData.groups[entry.split(":")[1]].name);
+ } else {
+ companies.push(entry);
+ }
+ });
+ return [
+ groups.length > 0 && (
+ - Group: {groups.join(", ")}
+ ),
+ companies.length > 0 && (
+ - {title}: {companies.join(", ")}
+ ),
+ ];
+ } else if ( DROPDOWN_COLUMNS.includes(key) ) {
+ return [- {title}: {values.join(", ")}
];
} else {
const formatted = formatActiveSliderFilter(
values,
DEFAULT_FILTER_VALUES[key],
SLIDER_GROWTH_COLUMNS.includes(key)
);
- return - {title}: {formatted}
;
+ return [- {title}: {formatted}
];
}
})}