1
0
Fork 0
mirror of synced 2024-07-05 22:40:39 +12:00

Remove duplicate comment

This commit is contained in:
Andrew Kingston 2023-10-20 14:13:30 +01:00
parent 3bfa6e9d60
commit 9a72c418c9

View file

@ -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
}