This is an automated email from the ASF dual-hosted git repository.
aloyszhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push:
new 4ef061e99e [INLONG-10620][Dashboard] Page error occurs wrong (#10621)
4ef061e99e is described below
commit 4ef061e99ee82e1e8e7d5ed2411b4f71f147a8a5
Author: kamianlaida <[email protected]>
AuthorDate: Mon Jul 15 17:08:52 2024 +0800
[INLONG-10620][Dashboard] Page error occurs wrong (#10621)
---
inlong-dashboard/src/ui/pages/Process/Applies/config.tsx | 10 +++++-----
inlong-dashboard/src/ui/pages/Process/Approvals/config.tsx | 6 +++---
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/inlong-dashboard/src/ui/pages/Process/Applies/config.tsx
b/inlong-dashboard/src/ui/pages/Process/Applies/config.tsx
index 7fa8889dd2..114a066c60 100644
--- a/inlong-dashboard/src/ui/pages/Process/Applies/config.tsx
+++ b/inlong-dashboard/src/ui/pages/Process/Applies/config.tsx
@@ -55,7 +55,7 @@ export const getColumns = activedName => [
width: 90,
render: (text, record) => (
<Link
-
to={`/process/${activedName}/${text}?inlongGroupMode=${record.showInList[0]?.inlongGroupMode}`}
+
to={`/process/${activedName}/${text}?inlongGroupMode=${record.showInList?.[0]?.inlongGroupMode}`}
>
{text}
</Link>
@@ -70,13 +70,13 @@ export const getColumns = activedName => [
title: i18n.t('pages.Approvals.GroupId'),
dataIndex: 'inlongGroupId',
width: 200,
- render: (text, record) => record.showInList[0]?.inlongGroupId,
+ render: (text, record) => record.showInList?.[0]?.inlongGroupId,
},
{
title: i18n.t('pages.Approvals.ConsumeName'),
dataIndex: 'consumerGroup',
width: 200,
- render: (text, record) => record.showInList[0]?.consumerGroup,
+ render: (text, record) => record.showInList?.[0]?.consumerGroup,
},
{
title: i18n.t('pages.Approvals.GroupMode'),
@@ -92,7 +92,7 @@ export const getColumns = activedName => [
/>
);
}
- return record.showInList[0]?.inlongGroupMode === 1 ? (
+ return record.showInList?.[0]?.inlongGroupMode === 1 ? (
<StatusTag
type={'success'}
icon={<span />}
@@ -131,7 +131,7 @@ export const getColumns = activedName => [
width: 100,
render: (text, record) => (
<Link
-
to={`/process/${activedName}/${record.id}?inlongGroupMode=${record.showInList[0]?.inlongGroupMode}`}
+
to={`/process/${activedName}/${record.id}?inlongGroupMode=${record.showInList?.[0]?.inlongGroupMode}`}
>
{i18n.t('basic.Detail')}
</Link>
diff --git a/inlong-dashboard/src/ui/pages/Process/Approvals/config.tsx
b/inlong-dashboard/src/ui/pages/Process/Approvals/config.tsx
index 5e18d34d48..cc15f5fdc0 100644
--- a/inlong-dashboard/src/ui/pages/Process/Approvals/config.tsx
+++ b/inlong-dashboard/src/ui/pages/Process/Approvals/config.tsx
@@ -60,7 +60,7 @@ export const getColumns = activedName => [
dataIndex: 'processId',
render: (text, record) => (
<Link
-
to={`/process/${activedName}/${text}?taskId=${record.id}&inlongGroupMode=${record.showInList[0]?.inlongGroupMode}`}
+
to={`/process/${activedName}/${text}?taskId=${record.id}&inlongGroupMode=${record.showInList?.[0]?.inlongGroupMode}`}
>
{text}
</Link>
@@ -106,7 +106,7 @@ export const getColumns = activedName => [
/>
);
}
- return record.showInList[0]?.inlongGroupMode === 1 ? (
+ return record.showInList?.[0]?.inlongGroupMode === 1 ? (
<StatusTag
type={'success'}
icon={<span />}
@@ -136,7 +136,7 @@ export const getColumns = activedName => [
dataIndex: 'action',
render: (text, record) => (
<Link
-
to={`/process/${activedName}/${record.processId}?taskId=${record.id}&inlongGroupMode=${record.showInList[0]?.inlongGroupMode}`}
+
to={`/process/${activedName}/${record.processId}?taskId=${record.id}&inlongGroupMode=${record.showInList?.[0]?.inlongGroupMode}`}
>
{i18n.t('pages.Approvals.Approval')}
</Link>