Skip to content

Commit b37dc87

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Fix tests.
1 parent 3db38df commit b37dc87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/igniteui-angular/src/lib/grids/grid/grid.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
<span *ngIf="hasMovableColumns && draggedColumn && pinnedColumns.length > 0"
109109
[igxColumnMovingDrop]="headerContainer" [attr.droppable]="true" id="left"
110110
class="igx-grid__scroll-on-drag-pinned" [style.left.px]="pinnedWidth"></span>
111-
<ng-container *ngTemplateOutlet="isRowPinningToTop ? pinnedRecordsTemplate : null">
111+
<ng-container *ngTemplateOutlet="pinnedRecords.length > 0 && isRowPinningToTop ? pinnedRecordsTemplate : null">
112112
</ng-container>
113113
<ng-template #pinnedRecordsTemplate>
114114
<ng-container *ngIf='pinnedRecords
@@ -154,7 +154,7 @@
154154
(onBeforeViewDetach)='viewDetachHandler($event)'>
155155
</ng-template>
156156
</ng-template>
157-
<ng-container *ngTemplateOutlet="!isRowPinningToTop ? pinnedRecordsTemplate : null">
157+
<ng-container *ngTemplateOutlet="pinnedRecords.length > 0 && !isRowPinningToTop ? pinnedRecordsTemplate : null">
158158
</ng-container>
159159
<ng-template #record_template let-rowIndex="index" let-rowData>
160160
<igx-grid-row [gridID]="id" [index]="rowIndex" [rowData]="rowData" #row>

0 commit comments

Comments
 (0)