Skip to content

Commit b54c0bb

Browse files
MKY508claude
andcommitted
fix: remove debug logs and add empty array check
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a6d8670 commit b54c0bb

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

apps/web/src/components/settings/SchemaSettings.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@ export function SchemaSettings({ connectionId }: SchemaSettingsProps) {
9696

9797
// 构建节点和边
9898
useEffect(() => {
99-
console.log("schemaInfo:", schemaInfo);
100-
console.log("tables:", schemaInfo?.tables);
101-
if (!schemaInfo?.tables) return;
99+
if (!schemaInfo?.tables || schemaInfo.tables.length === 0) return;
102100

103101
// 创建表节点
104102
const tableNodes: Node[] = schemaInfo.tables.map((table, index) => ({

apps/web/tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)