petercat-ai / petercat

A conversational Q&A agent configuration system, self-hosted deployment solutions, and a convenient all-in-one application SDK, allowing you to create intelligent Q&A bots for your GitHub repositories
https://petercat.ai
MIT License
595 stars 16 forks source link

fix(ci): fix build error #490

Closed ch-liuzhide closed 3 days ago

ch-liuzhide commented 3 days ago

修复构建错误

vercel[bot] commented 3 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
petercat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 19, 2024 7:56am
petercat-assistant[bot] commented 3 days ago

变更概述

修复构建错误,通过调整条件渲染逻辑和添加注释来解决潜在问题。

变更详情

文件 概要
client/app/factory/edit/page.tsx 修复条件渲染逻辑,确保 KnowledgeBtn 组件仅在 botProfile.repoName 存在时渲染,并添加 @ts-ignore 注释以忽略 TypeScript 错误。