fix(instances): set correct values when sorting packages

This commit is contained in:
Sérgio Ramos 2018-03-02 14:11:02 +00:00
parent ec2f9fc141
commit 81c119a066
1 changed files with 3 additions and 3 deletions

View File

@ -47,10 +47,10 @@ const PackageContainer = ({
packages,
selected = {},
sortOrder,
sortBy,
handleRowClick,
handleResetFilters,
handleSortBy,
sortBy,
step
}) => (
<Fragment>
@ -250,10 +250,10 @@ export default compose(
handleSortBy: (newSortBy, sortOrder) => {
dispatch([
set({
name: IC_PKG_V_SORT_BY,
name: IC_PKG_V_SORT_ORDER,
value: sortOrder === 'desc' ? 'asc' : 'desc'
}),
set({ name: IC_PKG_V_SORT_ORDER, value: newSortBy })
set({ name: IC_PKG_V_SORT_BY, value: newSortBy })
]);
}
})