The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix Flow tab missing for workflow run (#18602)
Weiko3f420c84d747
diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutRendererContent.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutRendererContent.tsxindex 8881a1f081a..58b5d8dcec0 100644--- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutRendererContent.tsx+++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutRendererContent.tsx@@ -114,9 +114,11 @@ export const PageLayoutRendererContent = () => {isEditMode: isPageLayoutInEditMode,});+ const SYSTEM_OBJECT_TABS = ['Home', 'Timeline', 'Overview', 'Flow'];+const tabsForCurrentObject = isSystemObject- ? tabsWithVisibleWidgets.filter(- (tab) => tab.title === 'Home' || tab.title === 'Timeline',+ ? tabsWithVisibleWidgets.filter((tab) =>+ SYSTEM_OBJECT_TABS.includes(tab.title),): tabsWithVisibleWidgets;