mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-01-30 23:53:54 +00:00
Fix region config id in gateway list + add link to region.
This commit is contained in:
parent
103e4298fb
commit
e78dac316a
@ -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>;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user