Fix recordTableCells being displayed several time on record group tables (#12843)

As per title!
This commit is contained in:
Charles Bochet
2025-06-24 17:29:50 +02:00
committed by GitHub
parent baaec81a91
commit 77f0ed2208

View File

@ -34,7 +34,7 @@ export const RecordTableRecordGroupsBody = () => {
return (
<>
<RecordTableBodyRecordGroupDragDropContextProvider>
{visibleRecordGroupIds.map((recordGroupId) => (
{visibleRecordGroupIds.map((recordGroupId, index) => (
<RecordTableRecordGroupBodyContextProvider
key={recordGroupId}
recordGroupId={recordGroupId}
@ -43,7 +43,7 @@ export const RecordTableRecordGroupsBody = () => {
<RecordTableBodyDroppable recordGroupId={recordGroupId}>
<RecordTableRecordGroupSection />
<RecordTableRecordGroupRows />
<RecordTableCellPortals />
{index === 0 && <RecordTableCellPortals />}
</RecordTableBodyDroppable>
</RecordGroupContext.Provider>
</RecordTableRecordGroupBodyContextProvider>