Adds not equal operator and expands unequal collapsed header rows (#20737)

* Adds not equal operator and expands unequal collapsed prop rows

* Minor clean up.
This commit is contained in:
Lewis Sanchez
2022-10-06 13:45:04 -07:00
committed by GitHub
parent 454fb1d6a5
commit f046129515

View File

@@ -265,17 +265,23 @@ export class ExecutionPlanComparisonPropertiesView extends ExecutionPlanProperti
const treeGridChildren = row.treeGridChildren;
if (treeGridChildren?.length > 0) {
let [unequalSubRows, equalSubRows] = this.splitEqualFromUnequalProperties(treeGridChildren);
const [unequalSubRows, equalSubRows] = this.splitEqualFromUnequalProperties(treeGridChildren);
if (unequalSubRows.length > 0) {
let currentRow = deepClone(row);
const currentRow = deepClone(row);
currentRow.treeGridChildren = unequalSubRows;
currentRow.expanded = true;
currentRow.icon = {
iconCssClass: executionPlanComparisonPropertiesDifferent,
title: notEqualTitle
};
unequalRows.push(currentRow);
}
if (equalSubRows.length > 0) {
let currentRow = deepClone(row);
const currentRow = deepClone(row);
currentRow.treeGridChildren = equalSubRows;
equalRows.push(currentRow);