ListSettingsView: Append the new field instead of prepend

This commit is contained in:
Gustav Hansen 2022-02-18 13:55:10 +01:00
parent 393909c381
commit 3e808a1983

View File

@ -17,7 +17,7 @@ const reducer = (state = initialState, action) =>
switch (action.type) {
case 'ADD_FIELD': {
const layoutFieldList = get(state, layoutFieldListPath, []);
set(draftState, layoutFieldListPath, [action.item, ...layoutFieldList]);
set(draftState, layoutFieldListPath, [...layoutFieldList, action.item]);
break;
}
case 'MOVE_FIELD': {