Skip to content

Commit 067c175

Browse files
Copilothotlong
andcommitted
Remove incorrect @ts-expect-error directive from ObjectKanban.tsx
The @ts-expect-error directive was unnecessary since KanbanSchema already defines cardTitle property. This was causing a TypeScript compile error for unused directive. Updated comment to clarify this is a backwards compatibility fallback. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 796b858 commit 067c175

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/plugin-kanban/src/ObjectKanban.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export const ObjectKanban: React.FC<ObjectKanbanProps> = ({
101101
if (!Array.isArray(rawData)) return [];
102102

103103
// Support cardTitle property from schema (passed by ObjectView)
104-
// @ts-expect-error - cardTitle might not be in KanbanSchema type definition yet
104+
// Fallback to legacy titleField for backwards compatibility
105105
let titleField = schema.cardTitle || (schema as any).titleField;
106106

107107
// Fallback: Try to infer from object definition

0 commit comments

Comments
 (0)