From 5e74551d219b075e47ea272b27deaddca7857871 Mon Sep 17 00:00:00 2001 From: Wolfwood Date: Mon, 7 Oct 2019 16:51:01 +0200 Subject: [PATCH] Only do a complex query for createdAt instead of -createdAt This should prevent the duplicate last entry issue https://github.com/parse-community/parse-dashboard/issues/1309 --- src/dashboard/Data/Browser/Browser.react.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dashboard/Data/Browser/Browser.react.js b/src/dashboard/Data/Browser/Browser.react.js index 1f6da6ed1a..053fdf18a0 100644 --- a/src/dashboard/Data/Browser/Browser.react.js +++ b/src/dashboard/Data/Browser/Browser.react.js @@ -405,7 +405,7 @@ class Browser extends DashboardView { let className = this.props.params.className; let source = this.state.relation || className; let query = queryFromFilters(source, this.state.filters); - if (this.state.ordering !== '-createdAt') { + if (this.state.ordering !== 'createdAt') { // Construct complex pagination query let equalityQuery = queryFromFilters(source, this.state.filters); let field = this.state.ordering;