mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 13:38:26 +02:00
Fix Osmose details not always showing at first
Issues without a `subtitle` value would silently error when trying to access the `auto` key of a null value which meant the elements weren't showing up in the UI straight away.
This commit is contained in:
@@ -175,7 +175,7 @@ export default {
|
||||
issue.elems = data.elems.map(e => e.type.substring(0,1) + e.id);
|
||||
|
||||
// Some issues have instance specific detail in a subtitle
|
||||
issue.detail = marked(data.subtitle.auto);
|
||||
issue.detail = data.subtitle ? marked(data.subtitle.auto) : '';
|
||||
|
||||
this.replaceItem(issue);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user