Skip email/calendar tab creation for custom object record page layouts (#19544)

## Context
Emails and calendars can only be associated with specific objects
(companies, people...) and we were adding those tabs for all custom
objects. I'm removing these from the default config
This commit is contained in:
Weiko 2026-04-10 11:41:49 +02:00 committed by GitHub
parent e03ac126ab
commit 186bc02533
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,8 +38,6 @@ export const computeFlatDefaultRecordPageLayoutToCreate = ({
{ key: 'tasks' as const, widgetKey: 'tasks' as const },
{ key: 'notes' as const, widgetKey: 'notes' as const },
{ key: 'files' as const, widgetKey: 'files' as const },
{ key: 'emails' as const, widgetKey: 'emails' as const },
{ key: 'calendar' as const, widgetKey: 'calendar' as const },
];
const pageLayoutTabs: FlatPageLayoutTab[] = [];