Skip to content

Commit 7fc2780

Browse files
fix: update snippet generator map to support React 16 (#7154)
1 parent cbc6882 commit 7fc2780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/plugins/request-snippets/request-snippets.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class RequestSnippets extends React.Component {
103103
expanded && <div className="curl-command">
104104
<div style={{paddingLeft: "15px", paddingRight: "10px", width: "100%", display: "flex"}}>
105105
{
106-
snippetGenerators.map((gen, key) => {
106+
snippetGenerators.entrySeq().map(([key, gen]) => {
107107
return (<div style={getBtnStyle(key)} className="btn" key={key} onClick={() => onGenChange(key)}>
108108
<h4 style={key === activeLanguage ? {color: "white",} : {}}>{gen.get("title")}</h4>
109109
</div>)

0 commit comments

Comments
 (0)