github →

New request

#19990: Standard tabs in the record layout like Timeline, Tasks, Notes and Files are still showing even though the relation is completely removed from the object

We'll provision a sandbox, run an agent against the issue, and open a draft PR. You can pull the branch and iterate from there.

Issue
sonarly:medium

Bug Description

As shown in the screenshots down below I have removed the relations all together for this custom object but the tabs are still showing and when I click on them an expected error is displayed that the carModelId is not found in the target object

<img width="1142" height="786" alt="Image" src="https://github.com/user-attachments/assets/cb19329f-b5fd-4df9-9da9-d17f9d208d11" /> <img width="1486" height="742" alt="Image" src="https://github.com/user-attachments/assets/39299268-a2ae-4cf5-8329-b89883ab140d" /> <img width="736" height="350" alt="Image" src="https://github.com/user-attachments/assets/1ee3dcb3-839e-4c30-8244-ae4bb8c8af07" />

Expected behavior

The tabs should completely be removed from the layout.

Assessmentadvisory
bug●● medium85% confidence

Standard tabs are rendered even after their underlying relations are deleted, indicating a missing existence/filter check in the record layout/tab derivation logic across several frontend components.

Likely files
  • packages/twenty-front/src/modules/object-record/record-show/components/RecordShowContainer.tsx
  • packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowTabs.ts
  • packages/twenty-front/src/modules/object-record/hooks/useFindManyObjectRecords.ts
  • packages/twenty-front/src/modules/object-metadata/hooks/useObjectMetadata.ts
  • packages/twenty-front/src/modules/views/hooks/useViewFields.ts
Create the request

This opens a fresh agent run and a draft PR for issue #19990.

Cancel