From 279e507939b6c5d937de41cbc0a4fb0863e16b8f Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 25 Jul 2017 15:18:57 +0900 Subject: [PATCH] unique "key" prop added --- src/ts/@overflow/app/views/layout/TitleBar.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ts/@overflow/app/views/layout/TitleBar.tsx b/src/ts/@overflow/app/views/layout/TitleBar.tsx index 71edf58..606aed5 100644 --- a/src/ts/@overflow/app/views/layout/TitleBar.tsx +++ b/src/ts/@overflow/app/views/layout/TitleBar.tsx @@ -61,12 +61,16 @@ export class TitleBar extends React.Component { public renderBreadcrumb(): JSX.Element[] { let elems: JSX.Element[] = new Array(); let pathArr = this.props.location.split('/'); + let index: number = 0; for (let item of pathArr) { if (item !== '' && !item.match(/^\d+$/)) { let path = '/' + item; - elems.push({this.capitalizeFirst(item)}); - elems.push(); + elems.push( + + {this.capitalizeFirst(item)} + ); + elems.push(); } } return elems;