diff --git a/src/FlexibleTable/FlexibleTable.jsx b/src/FlexibleTable/FlexibleTable.jsx index 7ff2c36e7ec325193ec78d74f9a514106bd7a3d0..2940e2fb7ac5e750dde5249c525b9ef39f13ea80 100644 --- a/src/FlexibleTable/FlexibleTable.jsx +++ b/src/FlexibleTable/FlexibleTable.jsx @@ -385,9 +385,9 @@ export default function FlexibleTable({attributes, setAttributes, placeholders, </thead> <tbody className={"fitb-item-table-body"}> - {Array.from({length: 2}).map((_, index) => ( + {Array.from({length: 2}).map((_, trIndex) => ( <tr className={"fitb-item-table-row"} style={{ - background: (multipleBodyBackground && index === 1) ? bodyBackgroundOdd : bodyBackground, + background: (multipleBodyBackground && trIndex === 1) ? bodyBackgroundOdd : bodyBackground, borderStyle: "solid", borderColor: bodyBorderRowColor, borderTopWidth: bodyBorderRowWidthTop, @@ -411,7 +411,7 @@ export default function FlexibleTable({attributes, setAttributes, placeholders, key={index} value={row} style={{ - color: (multipleBodyBackground && index === 1) ? bodyTextColorOdd : bodyTextColor, + color: (multipleBodyBackground && trIndex === 1) ? bodyTextColorOdd : bodyTextColor, textAlign: bodyTextAlign, fontStyle: bodyFontStyle, fontSize: bodyFontSize,