0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

Fix snippet filter

This commit is contained in:
Trevor Buckner
2024-09-06 16:35:18 -04:00
parent e5d0051075
commit 22678b15af

View File

@@ -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 result.filter(snip.gen || snip.subsnippets);
return result.filter(snip => snip.gen || snip.subsnippets);
}
},