fix: fix catalog region display

fix the region display when the catalog's endpoints is empty

Change-Id: Ibee94fd5895c0dfd295a3b735aac46f428cbb5b9
This commit is contained in:
zhangjingwei 2024-03-04 10:08:21 +08:00
parent 8c20aa2548
commit b42958e43d
2 changed files with 2 additions and 1 deletions

View File

@ -53,6 +53,7 @@ export class Catalog extends Base {
dataIndex: 'region',
isHideable: true,
width: 150,
render: (value) => value || '-',
},
{
title: t('Endpoints'),

View File

@ -27,7 +27,7 @@ export class AuthCatalogStore extends Base {
get mapper() {
return (data) => ({
...data,
region: (data.endpoints && data.endpoints[0].region) || '',
region: (data.endpoints && data.endpoints[0]?.region) || '',
});
}
}