Skip to content

Commit ae63c8c

Browse files
committed
fix(merge-strategy): add return type to merge method
1 parent 80d7c33 commit ae63c8c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

projects/igniteui-angular/src/lib/data-operations/merge-strategy.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class DefaultMergeStrategy implements IGridMergeStrategy {
6060
isDate = false,
6161
isTime = false,
6262
grid?: GridType
63-
) {
63+
): any[] {
6464
let prev = null;
6565
let index = 0;
6666
for (const rec of data) {
@@ -94,8 +94,8 @@ export class DefaultMergeStrategy implements IGridMergeStrategy {
9494

9595
/* blazorCSSuppress */
9696
public comparer(prevRecord: any, record: any, field: string, isDate = false, isTime = false): boolean {
97-
const a = this.getFieldValue(prevRecord,field, isDate, isTime);
98-
const b = this.getFieldValue(record,field, isDate, isTime);
97+
const a = this.getFieldValue(prevRecord, field, isDate, isTime);
98+
const b = this.getFieldValue(record, field, isDate, isTime);
9999
const an = (a === null || a === undefined);
100100
const bn = (b === null || b === undefined);
101101
if (an) {
@@ -149,8 +149,8 @@ export class DefaultMergeStrategy implements IGridMergeStrategy {
149149
export class DefaultTreeGridMergeStrategy extends DefaultMergeStrategy {
150150
/* blazorCSSuppress */
151151
public override comparer(prevRecord: any, record: any, field: string, isDate = false, isTime = false): boolean {
152-
const a = this.getFieldValue( prevRecord.data, field, isDate, isTime);
153-
const b = this.getFieldValue(record.data,field, isDate, isTime);
152+
const a = this.getFieldValue(prevRecord.data, field, isDate, isTime);
153+
const b = this.getFieldValue(record.data, field, isDate, isTime);
154154
const an = (a === null || a === undefined);
155155
const bn = (b === null || b === undefined);
156156
if (an) {
@@ -168,8 +168,8 @@ export class DefaultTreeGridMergeStrategy extends DefaultMergeStrategy {
168168
export class ByLevelTreeGridMergeStrategy extends DefaultMergeStrategy {
169169
/* blazorCSSuppress */
170170
public override comparer(prevRecord: any, record: any, field: string, isDate = false, isTime = false): boolean {
171-
const a = this.getFieldValue( prevRecord.data, field, isDate, isTime);
172-
const b = this.getFieldValue(record.data,field, isDate, isTime);
171+
const a = this.getFieldValue(prevRecord.data, field, isDate, isTime);
172+
const b = this.getFieldValue(record.data, field, isDate, isTime);
173173
const levelA = prevRecord.level;
174174
const levelB = record.level;
175175
const an = (a === null || a === undefined);

0 commit comments

Comments
 (0)