From 7144cc7f141cb36902bb89d8bdcf546607d6388d Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Sat, 13 May 2017 16:03:35 -0700 Subject: [PATCH] Fixed key warning --- frontend/scenes/DocumentScene/DocumentScene.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/scenes/DocumentScene/DocumentScene.js b/frontend/scenes/DocumentScene/DocumentScene.js index 3bda986c8..def21887e 100644 --- a/frontend/scenes/DocumentScene/DocumentScene.js +++ b/frontend/scenes/DocumentScene/DocumentScene.js @@ -150,10 +150,14 @@ class DocumentScene extends React.Component { const { document, pathToDocument } = this.store; if (document && document.collection) { const titleSections = pathToDocument - ? pathToDocument.map(node => {node.title}) + ? pathToDocument.map(node => ( + {node.title} + )) : []; titleSections.unshift( - {document.collection.name} + + {document.collection.name} + ); return (