aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs/src/components/interface.tsx
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-09-28 01:52:51 +0800
committerFabio Berger <me@fabioberger.com>2018-09-28 01:52:51 +0800
commit63ffdb3895caa641881eecf21563a667f6d8b605 (patch)
tree6dc5b2a049c49d782d74b96dcbe25f47a13c552a /packages/react-docs/src/components/interface.tsx
parente7b1374f23bfe098457b94ae51fac920aab6167b (diff)
downloaddexon-sol-tools-63ffdb3895caa641881eecf21563a667f6d8b605.tar
dexon-sol-tools-63ffdb3895caa641881eecf21563a667f6d8b605.tar.gz
dexon-sol-tools-63ffdb3895caa641881eecf21563a667f6d8b605.tar.bz2
dexon-sol-tools-63ffdb3895caa641881eecf21563a667f6d8b605.tar.lz
dexon-sol-tools-63ffdb3895caa641881eecf21563a667f6d8b605.tar.xz
dexon-sol-tools-63ffdb3895caa641881eecf21563a667f6d8b605.tar.zst
dexon-sol-tools-63ffdb3895caa641881eecf21563a667f6d8b605.zip
Improve key
Diffstat (limited to 'packages/react-docs/src/components/interface.tsx')
-rw-r--r--packages/react-docs/src/components/interface.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/react-docs/src/components/interface.tsx b/packages/react-docs/src/components/interface.tsx
index 9f0800d71..cad7d6c46 100644
--- a/packages/react-docs/src/components/interface.tsx
+++ b/packages/react-docs/src/components/interface.tsx
@@ -20,9 +20,9 @@ export interface InterfaceProps {
export const Interface: React.SFC<InterfaceProps> = (props: InterfaceProps): any => {
const type = props.type;
- const properties = _.map(type.children, property => {
+ const properties = _.map(type.children, (property, i) => {
return (
- <span key={`property-${property.name}-${property.type}-${type.name}`}>
+ <span key={`property-${property.name}-${property.type}-${type.name}-${i}`}>
{property.name}:{' '}
{property.type && !_.isUndefined(property.type.method) ? (
<Signature