We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 76617a5 + d063987 commit fdc8313Copy full SHA for fdc8313
src/plugins/topbar/topbar.jsx
@@ -1,4 +1,4 @@
1
-import React from "react"
+import React, { cloneElement } from "react"
2
import PropTypes from "prop-types"
3
4
//import "./topbar.less"
@@ -134,7 +134,7 @@ export default class Topbar extends React.Component {
134
<span>swagger</span>
135
</Link>
136
<form className="download-url-wrapper" onSubmit={formOnSubmit}>
137
- {control}
+ {control.map((el, i) => cloneElement(el, { key: i }))}
138
</form>
139
</div>
140
0 commit comments