diff --git a/src/bundle/ui-dev/src/modules/sub-items/sub.items.module.js b/src/bundle/ui-dev/src/modules/sub-items/sub.items.module.js index 979ec63f8d..35cb305043 100644 --- a/src/bundle/ui-dev/src/modules/sub-items/sub.items.module.js +++ b/src/bundle/ui-dev/src/modules/sub-items/sub.items.module.js @@ -255,13 +255,13 @@ export default class SubItemsModule extends Component { const cursor = this.calculateCursor(pageIndex); const queryConfig = { locationId, limit: itemsPerPage, sortClause, sortOrder, cursor }; - this.setState(() => ({ + this.setState({ queryParams: { sortClause, sortOrder, cursor, }, - })); + }); loadLocation(restInfo, queryConfig, (response) => { const { totalCount, pages, edges } = response.data._repository.location.children;