mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-12 00:12:56 +00:00
Merge branch 'master' into Issue_241_Part_II
This commit is contained in:
@@ -175,7 +175,10 @@ const Editor = createClass({
|
||||
this.props.setMoveArrows(newView === 'text');
|
||||
this.setState({
|
||||
view : newView
|
||||
}, this.updateEditorSize); //TODO: not sure if updateeditorsize needed
|
||||
}, ()=>{
|
||||
this.codeEditor.current?.codeMirror.focus();
|
||||
this.updateEditorSize();
|
||||
}); //TODO: not sure if updateeditorsize needed
|
||||
},
|
||||
|
||||
getCurrentPage : function(){
|
||||
|
||||
@@ -70,7 +70,7 @@ const Snippetbar = createClass({
|
||||
mergeCustomizer : function(oldValue, newValue, key) {
|
||||
if(key == 'snippets') {
|
||||
const result = _.reverse(_.unionBy(_.reverse(newValue), _.reverse(oldValue), 'name')); // Join snippets together, with preference for the child theme over the parent theme
|
||||
return _.filter(result, 'gen'); //Only keep snippets with a 'gen' property.
|
||||
return result.filter(snip => snip.gen || snip.subsnippets);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user