Skip to content

Commit

Permalink
compare refresh bug fixed
Browse files Browse the repository at this point in the history
Change-Id: I544235020ed91c7d0c3d320b8f8db69b4d8424d0
  • Loading branch information
fijolekProjects committed May 4, 2018
1 parent dff2db1 commit a21654d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ui/client/components/modals/CompareVersionsDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ class CompareVersionsDialog extends React.Component {
<div className="compareContainer">
<div>
<div className="versionHeader">Current version</div>
{this.printNode(diff.currentNode, differentPaths)}
{this.printNode(diff.currentNode, differentPaths, "_current")}
</div>
<div>
<div className="versionHeader">Version {this.versionDisplayString(this.state.otherVersion)}</div>
{this.printNode(diff.otherNode, [])}
{this.printNode(diff.otherNode, [], "_other")}
</div>
</div>
)
Expand All @@ -131,12 +131,13 @@ class CompareVersionsDialog extends React.Component {
return _.keys(flattenObj)
}

printNode(node, pathsToMark) {
return node ? (<NodeDetailsContent isEditMode={false} node={node}
printNode(node, pathsToMark, keySuffix) {
return node ? (<NodeDetailsContent isEditMode={false}
key={node.id + keySuffix}
node={node}
processDefinitionData={this.props.processDefinitionData}
pathsToMark={pathsToMark}
onChange={() => {
}}/>) :
onChange={() => {}}/>) :
(<div className="notPresent">Node not present</div>)
}

Expand Down

0 comments on commit a21654d

Please sign in to comment.