diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-05-18 02:43:17 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-05-19 02:35:13 +0800 |
commit | 7c8e9ddc42eb7d58073b3a1b9be587b72cc539bd (patch) | |
tree | 8e65462115f24c5a9e42b6f58ba74c1c42565db3 | |
parent | 157764c0d9af8eb45a00b78ee392a0df3ad542d1 (diff) | |
download | dexon-0x-contracts-7c8e9ddc42eb7d58073b3a1b9be587b72cc539bd.tar.gz dexon-0x-contracts-7c8e9ddc42eb7d58073b3a1b9be587b72cc539bd.tar.zst dexon-0x-contracts-7c8e9ddc42eb7d58073b3a1b9be587b72cc539bd.zip |
Fix key issue for portal routes
-rw-r--r-- | packages/website/ts/components/portal/portal.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/website/ts/components/portal/portal.tsx b/packages/website/ts/components/portal/portal.tsx index e35e99642..a04c0878f 100644 --- a/packages/website/ts/components/portal/portal.tsx +++ b/packages/website/ts/components/portal/portal.tsx @@ -320,7 +320,13 @@ export class Portal extends React.Component<PortalProps, PortalState> { return ( <Switch> {_.map(accountManagementItems, item => { - return <Route path={item.pathName} render={this._renderAccountManagementItem.bind(this, item)} />; + return ( + <Route + key={item.pathName} + path={item.pathName} + render={this._renderAccountManagementItem.bind(this, item)} + /> + ); })}} <Route render={this._renderNotFoundMessage.bind(this)} /> </Switch> |