Ignore name suggestions if there is no corresponding preset

This commit is contained in:
Bryan Housel
2016-07-16 11:31:02 -04:00
parent d197d223b1
commit d34f9df1af
2 changed files with 57263 additions and 7416 deletions
+5
View File
@@ -111,6 +111,11 @@ function suggestionsToPresets(presets) {
var tag = category.split('/'),
parent = presets[tag[0] + '/' + tag[1]];
if (!parent) {
console.log('WARN: no preset for suggestion = ' + tag);
return;
}
presets[category] = {
tags: parent.tags ? _.merge(tags, parent.tags) : tags,
name: name,
+57258 -7416
View File
File diff suppressed because it is too large Load Diff