This is an automated email from the ASF dual-hosted git repository.
dockerzhang 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 665d491c67 [INLONG-10681][Dashboard] There is a nesting problem in
moduleIdList (#10683)
665d491c67 is described below
commit 665d491c67cd0b15af9db236ad8b0cb489937879
Author: kamianlaida <[email protected]>
AuthorDate: Sun Jul 21 23:04:47 2024 +0800
[INLONG-10681][Dashboard] There is a nesting problem in moduleIdList
(#10683)
---
inlong-dashboard/src/ui/pages/Clusters/NodeEditModal.tsx | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/inlong-dashboard/src/ui/pages/Clusters/NodeEditModal.tsx
b/inlong-dashboard/src/ui/pages/Clusters/NodeEditModal.tsx
index 5a16e0d771..8801fc7be0 100644
--- a/inlong-dashboard/src/ui/pages/Clusters/NodeEditModal.tsx
+++ b/inlong-dashboard/src/ui/pages/Clusters/NodeEditModal.tsx
@@ -66,9 +66,13 @@ const NodeEditModal: React.FC<NodeEditModalProps> = ({ id,
type, clusterId, ...m
submitData.version = savedData?.version;
}
if (type === 'AGENT') {
- submitData.protocolType = 'http';
+ submitData.protocolType = 'HTTP';
if (submitData.installer !== undefined) {
- submitData.moduleIdList =
[submitData.moduleIdList].concat(submitData.installer);
+ if (Array.isArray(submitData.moduleIdList)) {
+ submitData.moduleIdList =
submitData.moduleIdList.concat(submitData.installer);
+ } else {
+ submitData.moduleIdList =
[submitData.moduleIdList].concat(submitData.installer);
+ }
}
}
await request({