From 32c112bc96ae96aebdb1f5bfa369e1ab52228b06 Mon Sep 17 00:00:00 2001
From: taehoon
Date: Thu, 14 Feb 2019 03:31:20 -0500
Subject: [PATCH] Remove pagination logic in fetchBlocks api
---
src/services/api/api.service.js | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js
index 908edf7c..3d2e8823 100644
--- a/src/services/api/api.service.js
+++ b/src/services/api/api.service.js
@@ -521,11 +521,7 @@ const fetchMutes = ({credentials}) => {
}
const fetchBlocks = ({page, credentials}) => {
- let url = BLOCKS_URL
- if (page) {
- url = url + `?page=${page}`
- }
- return fetch(url, {
+ return fetch(BLOCKS_URL, {
headers: authHeaders(credentials)
}).then((data) => {
if (data.ok) {