Commit d34f9df1 authored by Bryan Housel's avatar Bryan Housel

Ignore name suggestions if there is no corresponding preset

parent d197d223
......@@ -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,
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment