Commit 82a96602 authored by Roman's avatar Roman

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

parent 2d1cb17b
......@@ -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