Skip to content

Commit 83225c4

Browse files
CarlesLopezMagemmledour
authored andcommitted
FooterComponent not required (#49)
1 parent 95621e9 commit 83225c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/angular-admin-lte/src/lib/layout/footer/footer.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export class FooterService {
1010
* @return [description]
1111
*/
1212
public get offsetHeight(): number {
13-
return this.elementRef.nativeElement.offsetHeight;
13+
return this.elementRef ? this.elementRef.nativeElement.offsetHeight : 0;
1414
}
1515
}

0 commit comments

Comments
 (0)