Reorder snippets

This commit is contained in:
Trevor Buckner committed 2022-08-06 12:09:14 -04:00
1 parent 44dbb8f285
commit ddcf34c006
2 files changed
+1 -2

No files matched your search

@@ -68,7 +68,7 @@ const Snippetbar = createClass({
mergeCustomizer : function(valueA, valueB, key) {
if(key == "snippets") {
const result = _.unionBy(valueB, valueA, 'name'); // Join snippets together, with preference for the current theme over the base theme
const result = _.reverse(_.unionBy(_.reverse(valueB), _.reverse(valueA), '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.
}
},