Skip to content

Commit

Permalink
fix isLast
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpn committed Sep 27, 2024
1 parent 66878f9 commit 252a32d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const FieldGroupDiffComponent = ({
data-test-subj="ruleUpgradePerFieldDiff"
>
{fieldDiffs.map(({ currentVersion, targetVersion, fieldName: specificFieldName }, index) => {
const isLast = index !== fieldDiffs.length - 1;
const isLast = index === fieldDiffs.length - 1;

return (
<SubFieldComponent
Expand Down

0 comments on commit 252a32d

Please sign in to comment.