From 14577d14bb337898a1fd0fdee1c3760812b9d21f Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Thu, 22 Jul 2021 18:22:47 +0200 Subject: [PATCH] fix: sort order of tables is lost switching pages --- src/renderer/components/WorkspaceTableTab.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/components/WorkspaceTableTab.vue b/src/renderer/components/WorkspaceTableTab.vue index 20913a9a..a6495496 100644 --- a/src/renderer/components/WorkspaceTableTab.vue +++ b/src/renderer/components/WorkspaceTableTab.vue @@ -284,7 +284,7 @@ export default { addNotification: 'notifications/addNotification', changeBreadcrumbs: 'workspaces/changeBreadcrumbs' }), - async getTableData (sortParams) { + async getTableData () { if (!this.table) return; this.isQuering = true; @@ -300,7 +300,7 @@ export default { table: this.table, limit: this.limit, page: this.page, - sortParams + sortParams: this.sortParams }; try { // Table data @@ -321,11 +321,11 @@ export default { return this.table; }, reloadTable () { - this.getTableData(this.sortParams); + this.getTableData(); }, hardSort (sortParams) { this.sortParams = sortParams; - this.getTableData(sortParams); + this.getTableData(); }, openPageMenu () { if (this.isQuering) return;