Skip to content

Commit c740f30

Browse files
committed
fix production build
1 parent 201c5ec commit c740f30

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/app/components/micropost-list/micropost-list.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class MicropostListComponent implements OnInit {
5959
private loadUserStats() {
6060
this.userService.get(this.userId)
6161
.subscribe(user => {
62-
if (user.userStats) this.userStats = user.userStats;
62+
this.userStats = user.userStats;
6363
}, e => this.errorHandler.handle(e))
6464
;
6565
}

src/app/core/domains.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface User {
1010
id:string|number;
1111
email?:string;
1212
name?:string;
13-
userStats?:UserStats;
13+
userStats:UserStats;
1414
isFollowedByMe?:boolean;
1515
avatarHash?:string;
1616
}

src/app/core/forms/validators.ts

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export class Validators {
77
if (c1.value !== c2.value) return {unmatched: true};
88
return {};
99
};
10-
1110
}
1211

1312
}

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
},
2828
"exclude": [
2929
"node_modules",
30-
"dist"
30+
"dist",
31+
"aot"
3132
],
3233
"awesomeTypescriptLoaderOptions": {
3334
"forkChecker": true,

0 commit comments

Comments
 (0)