fix: fix catalog region display
fix the region display when the catalog's endpoints is empty Change-Id: Ibee94fd5895c0dfd295a3b735aac46f428cbb5b9
This commit is contained in:
parent
8c20aa2548
commit
b42958e43d
@ -53,6 +53,7 @@ export class Catalog extends Base {
|
|||||||
dataIndex: 'region',
|
dataIndex: 'region',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
width: 150,
|
width: 150,
|
||||||
|
render: (value) => value || '-',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Endpoints'),
|
title: t('Endpoints'),
|
||||||
|
@ -27,7 +27,7 @@ export class AuthCatalogStore extends Base {
|
|||||||
get mapper() {
|
get mapper() {
|
||||||
return (data) => ({
|
return (data) => ({
|
||||||
...data,
|
...data,
|
||||||
region: (data.endpoints && data.endpoints[0].region) || '',
|
region: (data.endpoints && data.endpoints[0]?.region) || '',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user