From a15e667b3cb22cb2ec02f54fdb1660ebbf2c0af4 Mon Sep 17 00:00:00 2001 From: chanx <1243304602@qq.com> Date: Tue, 16 Jun 2026 17:09:24 +0800 Subject: [PATCH] fix: update channelTemplates to filter for Discord and Lark only (#16065) ### What problem does this PR solve? fix: update channelTemplates to filter for Discord and Lark only - Fixed a display issue with chunks during pipeline parsing. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- .../components/parse-editer/json-parser.tsx | 4 +++- .../pages/user-setting/chat-channel/index.tsx | 18 ++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/web/src/pages/dataflow-result/components/parse-editer/json-parser.tsx b/web/src/pages/dataflow-result/components/parse-editer/json-parser.tsx index 24e8541aad..92f79bfc0c 100644 --- a/web/src/pages/dataflow-result/components/parse-editer/json-parser.tsx +++ b/web/src/pages/dataflow-result/components/parse-editer/json-parser.tsx @@ -81,7 +81,9 @@ export const ArrayContainer = (props: IJsonContainerProps) => { {isArray(content.value) && content.value?.map((item, index) => { if ( - item[parserKeyMap[content.key as keyof typeof parserKeyMap]] === '' + item[parserKeyMap[content.key as keyof typeof parserKeyMap]] === + '' || + !item[parserKey] ) { return null; } diff --git a/web/src/pages/user-setting/chat-channel/index.tsx b/web/src/pages/user-setting/chat-channel/index.tsx index 354d8c15c6..4a538f7cff 100644 --- a/web/src/pages/user-setting/chat-channel/index.tsx +++ b/web/src/pages/user-setting/chat-channel/index.tsx @@ -56,14 +56,16 @@ const AvailableChannelCard = ({ const ChatChannel = () => { const { t } = useTranslation(); const { chatChannelInfo } = useChatChannelInfo(); - const channelTemplates: IChatChannelInfo[] = Object.values( - ChatChannelKey, - ).map((id) => ({ - id, - name: chatChannelInfo[id].name, - description: chatChannelInfo[id].description, - icon: chatChannelInfo[id].icon, - })); + const channelTemplates: IChatChannelInfo[] = Object.values(ChatChannelKey) + .filter( + (id) => [ChatChannelKey.DISCORD, ChatChannelKey.FEISHU].includes(id), // Show only Discord and Feishu + ) + .map((id) => ({ + id, + name: chatChannelInfo[id].name, + description: chatChannelInfo[id].description, + icon: chatChannelInfo[id].icon, + })); const { categorizedList } = useListChatChannel();