Skip to content

Commit d1d7acc

Browse files
committed
chore(*): address comments and other fixes
1 parent 7fca3c7 commit d1d7acc

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid.component.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,10 +575,12 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti
575575
}
576576

577577
/**
578-
* Gets/Sets the collection of `EntityType` objects represented in hierarchical structure, which will be used in the advanced filtering dialog.
579-
*
578+
* Gets/Sets the schema for the hierarchical grid.
579+
* This schema defines the structure and properties of the data displayed in the grid.
580+
* @Input()
581+
* @param {EntityType[]} entities - An array of EntityType objects representing the grid's schema.
580582
* @remarks
581-
* This property is required in remote data scenarios.
583+
* This property is required in remote data filtering scenarios.
582584
* @example
583585
* ```typescript
584586
* const schema = this.grid.schema;

projects/igniteui-angular/src/lib/query-builder/query-builder-tree.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ export class IgxQueryBuilderTreeComponent implements AfterViewInit, OnDestroy {
194194
public set expressionTree(expressionTree: IExpressionTree) {
195195
this._expressionTree = expressionTree;
196196
if (!expressionTree) {
197-
this._selectedEntity = this.isAdvancedFiltering() ? this.entities[0] : null;
198-
this._selectedReturnFields = this._selectedEntity?.fields?.map(f => f.field);
197+
this._selectedEntity = this.isAdvancedFiltering() && this.entities.length === 1 ? this.entities[0] : null;
198+
this._selectedReturnFields = this._selectedEntity ? this._selectedEntity.fields?.map(f => f.field) : [];
199199
}
200200

201201
if (!this._preventInit) {
@@ -835,7 +835,6 @@ export class IgxQueryBuilderTreeComponent implements AfterViewInit, OnDestroy {
835835
* @hidden @internal
836836
*/
837837
public commitOperandEdit() {
838-
console.log('commitOperandEdit');
839838
const actualSearchValue = this.searchValue.value;
840839
if (this._editedExpression) {
841840
this._editedExpression.expression.fieldName = this.selectedField.field;

0 commit comments

Comments
 (0)