Skip to content

Commit

Permalink
fix: add key for preference item description list (#2840)
Browse files Browse the repository at this point in the history
  • Loading branch information
winjo authored Jun 28, 2023
1 parent 8d9c284 commit 056e778
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/preferences/src/browser/preferenceItem.view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ const renderDescriptionExpression = (description: string) => {
if (preference) {
const preferenceTitle = getPreferenceItemLabel(preference);
const [prev, next] = tmp.split(expression, 2);
prev && result.push(<span>{prev}</span>);
prev && result.push(<span key={result.length}>{prev}</span>);
tmp = next;
const link = (
<a
Expand All @@ -243,7 +243,7 @@ const renderDescriptionExpression = (description: string) => {
result.push(link);
}
}
tmp && result.push(<span>{tmp}</span>);
tmp && result.push(<span key={result.length}>{tmp}</span>);
return result;
};

Expand Down

0 comments on commit 056e778

Please sign in to comment.