Skip to content

Commit

Permalink
fix(ci): fix build error (#490)
Browse files Browse the repository at this point in the history
修复构建错误
  • Loading branch information
ch-liuzhide authored Nov 19, 2024
2 parents e162c2f + 3f7c5c1 commit fb16ad5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/app/factory/edit/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ export default function Edit() {
backgroundColor: '#fff',
}}
hideLogo={true}
// @ts-ignore
editBotId={botId!}
apiUrl="/api/chat/stream_builder"
apiDomain={API_HOST}
Expand Down Expand Up @@ -321,15 +322,17 @@ export default function Edit() {
{I18N.edit.page.chongXinShengChengPei}
</Button>
)}
{isEdit && activeTab === ConfigTypeEnum.MANUAL_CONFIG && (
{isEdit &&
activeTab === ConfigTypeEnum.MANUAL_CONFIG &&
botProfile.repoName ? (
<KnowledgeBtn
repoName={botProfile.repoName}
onClick={() => {
setVisibleType(VisibleTypeEnum.KNOWLEDGE_DETAIL);
}}
mode={'configItem'}
/>
)}
) : null}
</div>
</div>

Expand Down

0 comments on commit fb16ad5

Please sign in to comment.