From 81c119a066c25910e0a77057734727926a7b089d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Fri, 2 Mar 2018 14:11:02 +0000 Subject: [PATCH] fix(instances): set correct values when sorting packages --- .../src/containers/create-instance/package.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/my-joy-instances/src/containers/create-instance/package.js b/packages/my-joy-instances/src/containers/create-instance/package.js index f6d8b02b..0f41b0b0 100644 --- a/packages/my-joy-instances/src/containers/create-instance/package.js +++ b/packages/my-joy-instances/src/containers/create-instance/package.js @@ -47,10 +47,10 @@ const PackageContainer = ({ packages, selected = {}, sortOrder, + sortBy, handleRowClick, handleResetFilters, handleSortBy, - sortBy, step }) => ( @@ -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 }) ]); } })