The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix error "No widget found in canvas layout" (#17512)
Baptiste Devessierf33b8e12f4f3
diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutCanvasViewer.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutCanvasViewer.tsxindex 7e8be5375d1..12309aa66c3 100644--- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutCanvasViewer.tsx+++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutCanvasViewer.tsx@@ -18,7 +18,7 @@ export const PageLayoutCanvasViewer = ({const widget = widgets.at(0);if (!isDefined(widget)) {- throw new Error('No widget found in canvas layout');+ return null;}return (