Fix inspector for things with no tags

This commit is contained in:
Tom MacWright
2012-12-14 14:41:21 -05:00
parent ae9ebda78b
commit 09b20ffe94
+3 -1
View File
@@ -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();