Skip to content

Commit 8cd9d07

Browse files
Copilothotlong
andcommitted
fix: use source fields.length for field count on detail page (not local state)
Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/d101c93c-eeee-40ac-9495-b85336c1f08f Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 8744a85 commit 8cd9d07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/console/src/pages/system/ObjectManagerPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function ObjectDetailView({ object, metadataObject, onBack }: ObjectDetailViewPr
216216
</div>
217217
<div className="flex items-center gap-2">
218218
<span className="text-muted-foreground">Fields</span>
219-
<Badge variant="outline">{object.fieldCount ?? displayFields.length}</Badge>
219+
<Badge variant="outline">{object.fieldCount ?? fields.length}</Badge>
220220
</div>
221221
{object.isSystem && (
222222
<div>

0 commit comments

Comments
 (0)