From 2bf954c2d4ad7815eac16d76a6b4139a2ca8e848 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 12 Apr 2022 12:24:07 +0530 Subject: [PATCH] refactor: shared grid view api corrections Signed-off-by: Pranav C --- .../project/spreadsheet/public/xcTable.vue | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/packages/nc-gui/components/project/spreadsheet/public/xcTable.vue b/packages/nc-gui/components/project/spreadsheet/public/xcTable.vue index f418652b6a..5cdfd08bac 100644 --- a/packages/nc-gui/components/project/spreadsheet/public/xcTable.vue +++ b/packages/nc-gui/components/project/spreadsheet/public/xcTable.vue @@ -419,19 +419,21 @@ export default { list, pageInfo: { totalRows: count } } - } = (await this.$api.public.dataList(this.$route.params.id, {}, { - sortArrJson: JSON.stringify(this.sorts && this.sorts.map(({ - fk_column_id, - direction - }) => ({ - direction, - fk_column_id - }))), - filterArrJson: JSON.stringify(this.filters), - ...this.queryParams - }, { - headers: { 'xc-password': this.password } - } + } = (await this.$api.public.dataList( + this.$route.params.id, + { + sortArrJson: JSON.stringify(this.sorts && this.sorts.map(({ + fk_column_id, + direction + }) => ({ + direction, + fk_column_id + }))), + filterArrJson: JSON.stringify(this.filters), + ...this.queryParams + }, { + headers: { 'xc-password': this.password } + } )) this.count = count