diff --git a/web/app/components/app/text-generate/item/result-tab.tsx b/web/app/components/app/text-generate/item/result-tab.tsx index b89dbf06ac..5518643f2c 100644 --- a/web/app/components/app/text-generate/item/result-tab.tsx +++ b/web/app/components/app/text-generate/item/result-tab.tsx @@ -57,7 +57,7 @@ const ResultTab = ({ {currentTab === 'RESULT' && ( <> - {data?.files?.length && ( + {!!data?.files?.length && ( )} {currentTab === 'DETAIL' && content && ( - JSON OUTPUT} - language={CodeLanguage.json} - value={content} - isJSONStringifyBeauty - showFileList - /> +
+ JSON OUTPUT
} + language={CodeLanguage.json} + value={content} + isJSONStringifyBeauty + /> + )}