Commit d79928f5 authored by Shani's avatar Shani

Merge branch 'custom_fields_sortable' into 'dev'

BRCD-1712 fix(customFields) - custom fields reorder doesn't works

See merge request !941
parents 4141db61 82a96602
......@@ -82,7 +82,7 @@ export default function (state = defaultState, action) {
return state.deleteIn([category, name]);
case action.SET_FIELD_POSITION: {
case actions.SET_FIELD_POSITION: {
const curr = state.getIn([...action.path, action.oldIndex]);
return state.updateIn(action.path, Immutable.List(), list =>
list.delete(action.oldIndex).insert(action.newIndex, curr),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment