Show port monitors with port numbers.

This commit is contained in:
sonvir249 committed 2025-05-25 15:54:31 +05:30
1 parent 9681c7e2ee
commit 118ad67369
3 files changed
+6 -2

No files matched your search

@@ -155,6 +155,7 @@ const Search = ({
renderOption={(props, option) => {
const { key, ...optionProps } = props;
const hasSecondaryLabel = secondaryLabel && option[secondaryLabel] !== undefined;
const port = option["port"];
return (
<ListItem
key={key}
@@ -169,7 +170,9 @@ const Search = ({
}
>
{option[filteredBy] +
(hasSecondaryLabel ? ` (${option[secondaryLabel]})` : "")}
(hasSecondaryLabel
? ` (${option[secondaryLabel]}${port ? `, ${port}` : ""})`
: "")}
</ListItem>
);
}}