소스 검색

add proper key

Alexander Belanger 3 년 전
부모
커밋
2c5b315f03
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dashboard/src/main/home/cluster-dashboard/expanded-chart/logs-section/LogsSection.tsx

+ 1 - 1
dashboard/src/main/home/cluster-dashboard/expanded-chart/logs-section/LogsSection.tsx

@@ -193,7 +193,7 @@ const LogsSection: React.FC<Props> = ({
           <span className="line-timestamp">
             {dayjs(log.timestamp).format("MMM D, YYYY HH:mm:ss")}
           </span>
-          <LogOuter>
+          <LogOuter key={[log.lineNumber, i].join(".")}>
             {log.line?.map((ansi, j) => {
               if (ansi.clearLine) {
                 return null;