From 3f7c5c111f3022beef420f58cbe7a0f298911c15 Mon Sep 17 00:00:00 2001 From: ch-liuzhide Date: Tue, 19 Nov 2024 15:54:33 +0800 Subject: [PATCH] fix(ci): fix build error --- client/app/factory/edit/page.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/app/factory/edit/page.tsx b/client/app/factory/edit/page.tsx index a3fac7f1..380f70a5 100644 --- a/client/app/factory/edit/page.tsx +++ b/client/app/factory/edit/page.tsx @@ -230,6 +230,7 @@ export default function Edit() { backgroundColor: '#fff', }} hideLogo={true} + // @ts-ignore editBotId={botId!} apiUrl="/api/chat/stream_builder" apiDomain={API_HOST} @@ -321,7 +322,9 @@ export default function Edit() { {I18N.edit.page.chongXinShengChengPei} )} - {isEdit && activeTab === ConfigTypeEnum.MANUAL_CONFIG && ( + {isEdit && + activeTab === ConfigTypeEnum.MANUAL_CONFIG && + botProfile.repoName ? ( { @@ -329,7 +332,7 @@ export default function Edit() { }} mode={'configItem'} /> - )} + ) : null}