Skip to content

Commit 3880862

Browse files
committed
fix indexing
1 parent 57108d8 commit 3880862

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pages/home/report/ReportActionItemSingle.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,11 @@ function ReportActionItemSingle({
284284
}
285285
return (
286286
<View>
287-
{personArray.map((fragment) => (
287+
{personArray.map((fragment, index) => (
288288
<ReportActionItemFragment
289289
style={[styles.flex1]}
290-
key={`person-${action?.reportActionID}-${actorAccountID}`}
290+
// eslint-disable-next-line react/no-array-index-key
291+
key={`person-${action?.reportActionID}-${index}`}
291292
accountID={actorAccountID ?? -1}
292293
fragment={{...fragment, type: fragment?.type ?? '', text: fragment?.text ?? ''}}
293294
delegateAccountID={action?.delegateAccountID}

0 commit comments

Comments
 (0)