Skip to content

Commit

Permalink
Merge branch 'dmdimitrov/query-builder-improvements' into mcherkasov/…
Browse files Browse the repository at this point in the history
…qb-rehydration
  • Loading branch information
igdmdimitrov committed Nov 1, 2024
2 parents e148eb5 + a974892 commit 0c8ccd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,9 @@ <h6 class="igx-filter-empty__title">
</div>
</div>

<ng-container *ngIf="(!expressionItem.inEditMode && expressionItem.expression.searchTree) || (expressionItem.inEditMode && selectedField?.filters?.condition(selectedCondition)?.isNestedQuery)">
<ng-container *ngIf="
(!expressionItem.inEditMode && expressionItem.expression.searchTree && expressionItem.expression.searchTree.filteringOperands?.length > 0) ||
(expressionItem.inEditMode && selectedField?.filters?.condition(selectedCondition)?.isNestedQuery)">
<igx-query-builder-tree
[style.display]="expressionItem.inEditMode || expressionItem.expanded ? 'block' : 'none'"
[entities]="entities"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1656,15 +1656,15 @@ export class IgxQueryBuilderTreeComponent implements AfterViewInit, OnDestroy {
}
}


private init() {
this.clearSelection();
this.cancelOperandAdd();
this.cancelOperandEdit();

// Ignore values of 'parent' and 'hovered' properties for the comparison
// Ignore values of certain properties for the comparison
const propsToIgnore = ['parent', 'hovered', 'ignoreCase', 'inEditMode', 'inAddMode'];
const propsReplacer = function replacer(key, value) {
if (key === "parent" || key === "hovered" || key === "ignoreCase" || key === "inEditMode") {
if (propsToIgnore.indexOf(key) >= 0) {
return undefined;
} else {
return value;
Expand Down

0 comments on commit 0c8ccd4

Please sign in to comment.