Commit d79928f5 authored by Shani's avatar Shani
Browse files

Merge branch 'custom_fields_sortable' into 'dev'

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

See merge request sdoc/brcloud!941
parents 4141db61 82a96602
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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),