Skip to content

Commit

Permalink
Refactor #noissue : ChatLog 컴포넌트 키 값 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimakjun committed Dec 10, 2020
1 parent 791e9ec commit b876274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/routes/ChatRoom/ChatRoom.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable react/no-array-index-key */
import React, { FC, useEffect, useRef, useState, useCallback } from 'react';
import { useHistory, useParams } from 'react-router-dom';
import { useSelector } from 'react-redux';
Expand Down Expand Up @@ -87,7 +88,7 @@ const ChatRoom: FC = () => {
chats?.length !== 0 &&
chats.map((item, index) => (
<ChatLog
key={`chat_${item}`}
key={index}
content={item?.content}
writer={item?.writer}
type={userId}
Expand Down

0 comments on commit b876274

Please sign in to comment.