Skip to content

Commit

Permalink
TASK: Use conflict DTO key property as key for iteration in Conflic…
Browse files Browse the repository at this point in the history
…tList component
  • Loading branch information
grebaldi committed Apr 25, 2024
1 parent add2a26 commit a49fd0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/neos-ui-redux-store/src/CR/Syncing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export enum ReasonForConflict {
}

export type Conflict = {
key: string;
affectedNode: null | {
icon: string;
label: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export const ConflictList: React.FC<{
}> = (props) => {
return (
<ul className={style.conflictList}>
{props.conflicts.map((conflict, i) => (
{props.conflicts.map((conflict) => (
<ConflictItem
key={String(i)}
key={conflict.key}
conflict={conflict}
i18n={props.i18n}
/>
Expand Down

0 comments on commit a49fd0e

Please sign in to comment.