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();