Commit 1cc30cd99cf15fc5f070515e4caf7388b40b610e
Exists in
updated_signup_page
and in
2 other branches
Merge branch 'master' into staging
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
src/app/layout/blocks/communities-block/communities-block.component.ts
| ... | ... | @@ -16,7 +16,7 @@ export class CommunitiesBlockComponent { |
| 16 | 16 | constructor(private communityService: CommunityService) { } |
| 17 | 17 | |
| 18 | 18 | ngOnInit() { |
| 19 | - let limit = ((this.block && this.block['settings']) ? this.block['settings'].limit : null) || 5; | |
| 19 | + let limit: number = ((this.block && this.block.settings) ? this.block.settings.limit : null) || 5; | |
| 20 | 20 | |
| 21 | 21 | this.communityService.list(null, { limit: limit }).then((result: noosfero.RestResult<noosfero.Community[]>) => { |
| 22 | 22 | this.profiles = result.data; | ... | ... |