mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 09:04:02 +02:00
Fix inspector for things with no tags
This commit is contained in:
@@ -136,7 +136,9 @@ iD.Inspector = function() {
|
||||
.map(entries);
|
||||
}
|
||||
|
||||
draw(d3.entries(_.clone(entity.tags)));
|
||||
var tags = d3.entries(_.clone(entity.tags));
|
||||
if (tags.length === 0) tags = [{ key: '', value: '' }];
|
||||
draw(tags);
|
||||
|
||||
selection.select('input').node().focus();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user