fix: fix the download data in the all networks tab

Fix the project id value in the download data file in the all networks tab in the console.

Closes-Bug: #1993233
Change-Id: I864481ffb8608776ebf000c6a196a215b428ff95
This commit is contained in:
zhangjingwei 2022-10-18 11:47:28 +08:00
parent a29d9dacd3
commit 4edd0784e3
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ export class Networks extends Base {
return columns;
}
if (this.isProjectTab) {
return columns.filter((it) => it.dataIndex !== 'project_id');
return columns.filter((it) => it.dataIndex !== 'tenant_id');
}
if (this.isSharedTab) {
return columns.filter((it) => it.dataIndex !== 'shared');

View File

@ -35,7 +35,7 @@ export const networkColumns = (self) => [
},
{
title: t('Is Current Project'),
dataIndex: 'project_id',
dataIndex: 'tenant_id',
render: (value) => (value === self.currentProjectId ? t('Yes') : t('No')),
hidden: self.isAdminPage,
sorter: false,