From cf67684ed53f6826ed4db4319b8284d21d19d3ca Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Mon, 13 Apr 2020 16:38:20 +0100 Subject: [PATCH] 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. --- modules/services/osmose.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/osmose.js b/modules/services/osmose.js index 286853e7f..ad064043f 100644 --- a/modules/services/osmose.js +++ b/modules/services/osmose.js @@ -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); };