Skip to content

Commit e8a2e36

Browse files
committed
fix: add key for tex loop item
1 parent b8f8c14 commit e8a2e36

File tree

1 file changed

+2
-2
lines changed
  • client/src/components/Setting/SystemNotification

1 file changed

+2
-2
lines changed

client/src/components/Setting/SystemNotification/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ const SystemNotification: React.FC = () => {
1818
message={
1919
<div className={style.textLoop}>
2020
<TextLoop interval={5000}>
21-
{notices.map((notice) => (
22-
<span className={style.overflowEllipse} dangerouslySetInnerHTML={{ __html: notice }} />
21+
{notices.map((notice, index) => (
22+
<span key={index} className={style.overflowEllipse} dangerouslySetInnerHTML={{ __html: notice }} />
2323
))}
2424
</TextLoop>
2525
</div>

0 commit comments

Comments
 (0)