Fix region config id in gateway list + add link to region.

This commit is contained in:
Orne Brocaar 2023-01-09 12:22:27 +00:00
parent 103e4298fb
commit e78dac316a

View File

@ -52,14 +52,14 @@ class ListGateways extends Component<IProps> {
key: "name",
},
{
title: "Region name",
title: "Region ID",
dataIndex: "propertiesMap",
key: "regionName",
key: "regionConfigId",
width: 150,
render: (text, record) => {
for (const [k, v] of record.propertiesMap) {
if (k === "region_name") {
return v;
if (k === "region_config_id") {
return <Link to={`/regions/${v}`}>{v}</Link>;
}
}