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:
SilentSpike
2020-04-13 16:38:20 +01:00
parent 453e691069
commit cf67684ed5
+1 -1
View File
@@ -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);
};