Commit 452475b0bb09e6ca537ddb2f028aaa19f7b4171b
1 parent
bcf376e3
Exists in
master
and in
1 other branch
Add settings to block interface
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; | ... | ... |