Skip to content

The open alternative to Salesforce, designed for AI.

Always use page layout renderer for dashboards (#15403)

Baptiste Devessier2f3912aa98c1
diff --git a/packages/twenty-front/src/modules/object-record/record-show/components/PageLayoutDispatcher.tsx b/packages/twenty-front/src/modules/object-record/record-show/components/PageLayoutDispatcher.tsx
index d54e4ff579a..69d6899e76c 100644
--- a/packages/twenty-front/src/modules/object-record/record-show/components/PageLayoutDispatcher.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-show/components/PageLayoutDispatcher.tsx
@@ -26,7 +26,11 @@ export const PageLayoutDispatcher = ({
targetRecordIdentifier.targetObjectNameSingular ===
CoreObjectNameSingular.WorkflowVersion;
- if (isRecordPageEnabled && !isStandardObjectUnsupportingRecordPageLayouts) {
+ if (
+ targetRecordIdentifier.targetObjectNameSingular ===
+ CoreObjectNameSingular.Dashboard ||
+ (isRecordPageEnabled && !isStandardObjectUnsupportingRecordPageLayouts)
+ ) {
return (
<PageLayoutRecordPageRenderer
targetRecordIdentifier={targetRecordIdentifier}