Skip to content
Snippets Groups Projects
Commit 2a9a707f authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: default limit

parent 40af725e
No related branches found
No related tags found
2 merge requests!244Dev,!243feat/US17-posts-pagination
...@@ -22,12 +22,10 @@ export class PostService { ...@@ -22,12 +22,10 @@ export class PostService {
); );
} }
public getPosts(page: number, tags?: string[], limit?: string): Observable<PostWithMeta> { /**
if (!limit) { * 12 posts to fit new design (1 + 3 + 2 + 1 + 3 + 2)
// 12 posts to fit new design (1 + 3 + 2 + 1 + 3 + 2) */
limit = '12'; public getPosts(page: number, tags?: string[], limit: string = '12'): Observable<PostWithMeta> {
}
let tagsFilter = ''; let tagsFilter = '';
if (tags) { if (tags) {
let tagsString = ''; let tagsString = '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment