Skip to content

Commit f2acb51

Browse files
yunga91josephperrott
authored andcommitted
fix(schematics): fix object iteration error in dashboard (#12216)
1 parent 2d230b6 commit f2acb51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/schematics/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="grid-container">
22
<h1 class="mat-h1">Dashboard</h1>
33
<mat-grid-list cols="2" rowHeight="350px">
4-
<mat-grid-tile *ngFor="let card of cards" [colspan]="card.cols" [rowspan]="card.rows">
4+
<mat-grid-tile *ngFor="let card of cards | async" [colspan]="card.cols" [rowspan]="card.rows">
55
<mat-card class="dashboard-card">
66
<mat-card-header>
77
<mat-card-title>

src/lib/schematics/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Breakpoints, BreakpointState, BreakpointObserver } from '@angular/cdk/l
88
<div class="grid-container">
99
<h1 class="mat-h1">Dashboard</h1>
1010
<mat-grid-list cols="2" rowHeight="350px">
11-
<mat-grid-tile *ngFor="let card of cards" [colspan]="card.cols" [rowspan]="card.rows">
11+
<mat-grid-tile *ngFor="let card of cards | async" [colspan]="card.cols" [rowspan]="card.rows">
1212
<mat-card class="dashboard-card">
1313
<mat-card-header>
1414
<mat-card-title>

0 commit comments

Comments
 (0)