fix feeds pagination 🔨
continuous-integration/drone/push Build is passing Details

FIX/FEED_PAGINATION
Emre KARTAL 1 year ago
parent d17f5d7687
commit 2908d00b0f

@ -51,7 +51,9 @@ class PostService {
.limit(limit) .limit(limit)
.get(); .get();
MyApp.postViewModel.lastPostDiscovery = response.docs.last; MyApp.postViewModel.lastPostDiscovery = response.docs.isNotEmpty
? response.docs.last
: MyApp.postViewModel.lastPostDiscovery;
var filteredPosts = response.docs.where((doc) { var filteredPosts = response.docs.where((doc) {
String user = doc["user_id"]; String user = doc["user_id"];

Loading…
Cancel
Save