aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/loop_viewer/logs/LoopLogs.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui-react/src/components/loop_viewer/logs/LoopLogs.js')
-rw-r--r--ui-react/src/components/loop_viewer/logs/LoopLogs.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/ui-react/src/components/loop_viewer/logs/LoopLogs.js b/ui-react/src/components/loop_viewer/logs/LoopLogs.js
index b3f052626..e3d9f601f 100644
--- a/ui-react/src/components/loop_viewer/logs/LoopLogs.js
+++ b/ui-react/src/components/loop_viewer/logs/LoopLogs.js
@@ -66,10 +66,9 @@ export default class LoopLogs extends React.Component {
}
renderLogs() {
- if (this.state.loopCache.getLoopLogsArray() != null) {
- return (
- this.state.loopCache.getLoopLogsArray().map(row => <TableRow logRow={row} />)
- )
+ let logsArray = this.state.loopCache.getLoopLogsArray();
+ if (logsArray != null) {
+ return (logsArray.map(row => <TableRow key={row.id} logRow={row} />));
}
}