From 3d1dc42e2acd94e1546f1323cd6a149982a8099a Mon Sep 17 00:00:00 2001 From: Joe Fiorini Date: Tue, 2 Jun 2015 17:07:16 -0400 Subject: [PATCH] Compare facts before assuming they are all different --- .../js/system-tracking/compare-facts/flat.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/awx/ui/static/js/system-tracking/compare-facts/flat.js b/awx/ui/static/js/system-tracking/compare-facts/flat.js index 6def58c7a2..bb77c721d5 100644 --- a/awx/ui/static/js/system-tracking/compare-facts/flat.js +++ b/awx/ui/static/js/system-tracking/compare-facts/flat.js @@ -95,12 +95,16 @@ export default slottedValues = slotFactValues(basisFacts.position, basisValue, comparatorValue); - diffs = - { keyName: basisFact[nameKey], - isNestedDisplay: false, - value1: slottedValues.left, - value2: slottedValues.right - }; + if (basisValue !== comparatorValue) { + + diffs = + { keyName: basisFact[nameKey], + isNestedDisplay: false, + value1: slottedValues.left, + value2: slottedValues.right + }; + + } } else {