Skip to content

Commit

Permalink
Set the pipeline html contents correctly. Fixes #1859
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Aug 13, 2020
1 parent 04a1f29 commit e50c314
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/visualizers/widgets/PipelineIndex/PipelineIndexWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};
Expand Down

0 comments on commit e50c314

Please sign in to comment.