Remove unnecessary query parameters
This commit is contained in:
parent
110c4f0f73
commit
c0ee524d6b
|
@ -5,7 +5,7 @@
|
|||
import { first } from 'lodash';
|
||||
|
||||
export function extendTableData( select, props, queriedTableData ) {
|
||||
const { extendItemsMethodNames, itemIdField, query } = props;
|
||||
const { extendItemsMethodNames, itemIdField } = props;
|
||||
const itemsData = queriedTableData.items.data;
|
||||
if (
|
||||
! Array.isArray( itemsData ) ||
|
||||
|
@ -24,7 +24,6 @@ export function extendTableData( select, props, queriedTableData ) {
|
|||
const extendQuery = {
|
||||
include: itemsData.map( item => item[ itemIdField ] ).join( ',' ),
|
||||
per_page: itemsData.length,
|
||||
...query,
|
||||
};
|
||||
const extendedItems = loadMethod( extendQuery );
|
||||
const isExtendedItemsRequesting = isRequestingMethod ? isRequestingMethod( extendQuery ) : false;
|
||||
|
|
Loading…
Reference in New Issue