Skip to content

Commit 7f9bb2c

Browse files
Copilothotlong
andcommitted
fix: annotate effectiveRelated type in DetailView to fix TS2339 errors for api/columns properties
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 2dd45fd commit 7f9bb2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/plugin-detail/src/DetailView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export const DetailView: React.FC<DetailViewProps> = ({
319319
}, [schema.autoDiscoverRelated, schema.related, objectSchema]);
320320

321321
// Merge explicit and auto-discovered related lists
322-
const effectiveRelated = React.useMemo(() => {
322+
const effectiveRelated: NonNullable<DetailViewSchema['related']> = React.useMemo(() => {
323323
if (schema.related && schema.related.length > 0) return schema.related;
324324
return discoveredRelated.map((r) => ({
325325
title: r.title,

0 commit comments

Comments
 (0)