From a21654d12a2bd2ed6681b59d752931830c0c168d Mon Sep 17 00:00:00 2001 From: Michal Fijolek Date: Fri, 4 May 2018 14:57:04 +0200 Subject: [PATCH] compare refresh bug fixed Change-Id: I544235020ed91c7d0c3d320b8f8db69b4d8424d0 --- .../components/modals/CompareVersionsDialog.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ui/client/components/modals/CompareVersionsDialog.js b/ui/client/components/modals/CompareVersionsDialog.js index 732d62cdd6c..9c715884a2f 100644 --- a/ui/client/components/modals/CompareVersionsDialog.js +++ b/ui/client/components/modals/CompareVersionsDialog.js @@ -115,11 +115,11 @@ class CompareVersionsDialog extends React.Component {
Current version
- {this.printNode(diff.currentNode, differentPaths)} + {this.printNode(diff.currentNode, differentPaths, "_current")}
Version {this.versionDisplayString(this.state.otherVersion)}
- {this.printNode(diff.otherNode, [])} + {this.printNode(diff.otherNode, [], "_other")}
) @@ -131,12 +131,13 @@ class CompareVersionsDialog extends React.Component { return _.keys(flattenObj) } - printNode(node, pathsToMark) { - return node ? ( { - }}/>) : + onChange={() => {}}/>) : (
Node not present
) }