mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 07:25:15 +02:00
Ignore name suggestions if there is no corresponding preset
This commit is contained in:
@@ -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
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user