From 22678b15afa59b9190863e551cd81c88933e1993 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Fri, 6 Sep 2024 16:35:18 -0400 Subject: [PATCH] Fix snippet filter --- client/homebrew/editor/snippetbar/snippetbar.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/homebrew/editor/snippetbar/snippetbar.jsx b/client/homebrew/editor/snippetbar/snippetbar.jsx index c91a0bc47..f2680079e 100644 --- a/client/homebrew/editor/snippetbar/snippetbar.jsx +++ b/client/homebrew/editor/snippetbar/snippetbar.jsx @@ -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); } },