Remove snippet.params

This commit is contained in:
G.Ambatte committed 2023-06-15 11:50:38 +12:00
1 parent 6451d79d92
commit ade61971d0
3 files changed
+33 -38

No files matched your search

@@ -167,7 +167,7 @@ const SnippetGroup = createClass({
},
handleSnippetClick : function(e, snippet){
e.stopPropagation();
this.props.onSnippetClick(execute(snippet.gen, this.props.brew, { ...snippet.params, cursorPos: this.props.cursorPos }));
this.props.onSnippetClick(execute(snippet.gen, this.props));
},
renderSnippets : function(snippets){
return _.map(snippets, (snippet)=>{