0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-21 05:02:39 +00:00
This commit is contained in:
Trevor Buckner
2022-05-16 01:41:31 -04:00
parent 4f6555b522
commit a17a9ac0a0

View File

@@ -66,10 +66,10 @@ const Snippetbar = createClass({
},
mergeCustomizer : function(objValue, srcValue) {
  if (_.isArray(objValue)) {
let result = _.unionBy(srcValue, objValue, 'name'); // Join snippets together, with preference for the current theme over the base theme
if(_.isArray(objValue)) {
const result = _.unionBy(srcValue, objValue, 'name'); // Join snippets together, with preference for the current theme over the base theme
return _.filter(result, 'gen'); //Only keep snippets with a 'gen' property.
  }
}
},
compileSnippets : function(rendererPath, themePath, snippets) {