From 9a72c418c9c1b92c1496459d2127e8ca11ff62ee Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 20 Oct 2023 14:13:30 +0100 Subject: [PATCH] Remove duplicate comment --- packages/frontend-core/src/fetch/ViewV2Fetch.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/frontend-core/src/fetch/ViewV2Fetch.js b/packages/frontend-core/src/fetch/ViewV2Fetch.js index 464a85464e..9d2f8c103a 100644 --- a/packages/frontend-core/src/fetch/ViewV2Fetch.js +++ b/packages/frontend-core/src/fetch/ViewV2Fetch.js @@ -46,17 +46,13 @@ export default class ViewV2Fetch extends DataFetch { } = this.options const { cursor, query, definition } = get(this.store) - // If sort params are not defined, update options to store the sorting + // If sort/filter params are not defined, update options to store the // params built in to this view. This ensures that we can accurately - // compare old and new sorting params and skip a redundant API call. + // compare old and new params and skip a redundant API call. if (!sortColumn && definition.sort?.field) { this.options.sortColumn = definition.sort.field this.options.sortOrder = definition.sort.order } - - // If sort params are not defined, update options to store the sorting - // params built in to this view. This ensures that we can accurately - // compare old and new sorting params and skip a redundant API call. if (!filter?.length && definition.query?.length) { this.options.filter = definition.query }