Skip to content

The open alternative to Salesforce, designed for AI.

Fix(Twenty-front): Junction field unable to display as table (#22844)

Priyanshu Bartwal542653600446
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/field/components/FieldWidget.tsx b/packages/twenty-front/src/modules/page-layout/widgets/field/components/FieldWidget.tsx
index 5709aa270b9..7eea3d9a6d7 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/field/components/FieldWidget.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/field/components/FieldWidget.tsx
@@ -136,6 +136,15 @@ export const FieldWidget = ({ widget }: FieldWidgetProps) => {
);
}
+ if (fieldDisplayMode === FieldDisplayMode.TABLE) {
+ return (
+ <FieldWidgetRelationTable
+ fieldDefinition={fieldDefinition}
+ recordId={targetRecord.id}
+ />
+ );
+ }
+
return (
<FieldWidgetJunctionRelationField
fieldDefinition={fieldDefinition}