diff --git a/src/visualizers/widgets/PipelineIndex/PipelineIndexWidget.js b/src/visualizers/widgets/PipelineIndex/PipelineIndexWidget.js index a962026a5..dbf0f23e7 100644 --- a/src/visualizers/widgets/PipelineIndex/PipelineIndexWidget.js +++ b/src/visualizers/widgets/PipelineIndex/PipelineIndexWidget.js @@ -153,13 +153,10 @@ define([ PipelineIndexWidget.prototype.updateNode = function (desc) { if (desc && this.cards[desc.id]) { - var Template = this.getCardTemplate(desc); - - this.cards[desc.id].outerHTML = Template(desc); - // Check if the preview changed - if (desc.thumbnail !== this.nodes[desc.id].thumbnail) { - this.addThumbnail(desc.thumbnail, this.cards[desc.id]); - } + const Template = this.getCardTemplate(desc); + const newHtml = $(Template(desc)).html(); + this.cards[desc.id].html(newHtml); + this.addThumbnail(desc.thumbnail, this.cards[desc.id]); this.nodes[desc.id] = desc; } };