Fix show page navigation bugs (#9199)
Fixes total count bug that was -1 the total count Fixes a bug when trying to go from first to last or the other way around Fixes a React array key bug Follow-up issue (non critical) : https://github.com/twentyhq/twenty/issues/9197
This commit is contained in:
@ -15,10 +15,10 @@ export const RecordShowActionMenuButtons = () => {
|
||||
return (
|
||||
<>
|
||||
{!isMobile &&
|
||||
pinnedEntries.map((entry, index) =>
|
||||
pinnedEntries.map((entry) =>
|
||||
entry.shortLabel ? (
|
||||
<Button
|
||||
key={index}
|
||||
key={entry.key}
|
||||
Icon={entry.Icon}
|
||||
size="small"
|
||||
variant="secondary"
|
||||
@ -29,6 +29,7 @@ export const RecordShowActionMenuButtons = () => {
|
||||
/>
|
||||
) : (
|
||||
<IconButton
|
||||
key={entry.key}
|
||||
Icon={entry.Icon}
|
||||
size="small"
|
||||
variant="secondary"
|
||||
|
||||
Reference in New Issue
Block a user