Skip to content

Commit

Permalink
fix: update snippet generator map to support React 16 (#7154)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-smartbear authored Apr 14, 2021
1 parent cbc6882 commit 7fc2780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/plugins/request-snippets/request-snippets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class RequestSnippets extends React.Component {
expanded && <div className="curl-command">
<div style={{paddingLeft: "15px", paddingRight: "10px", width: "100%", display: "flex"}}>
{
snippetGenerators.map((gen, key) => {
snippetGenerators.entrySeq().map(([key, gen]) => {
return (<div style={getBtnStyle(key)} className="btn" key={key} onClick={() => onGenChange(key)}>
<h4 style={key === activeLanguage ? {color: "white",} : {}}>{gen.get("title")}</h4>
</div>)
Expand Down

0 comments on commit 7fc2780

Please sign in to comment.