Remove migration service
This commit is contained in:
parent
a845922df6
commit
ec72fdd164
20 changed files with 109 additions and 176 deletions
|
@ -210,7 +210,6 @@ export const FIELDS = [
|
|||
'drop_down_list_value',
|
||||
'libelle',
|
||||
'mandatory',
|
||||
'order_place',
|
||||
'parcelles_agricoles',
|
||||
'parent_id',
|
||||
'piece_justificative_template',
|
||||
|
|
|
@ -22,7 +22,7 @@ export function moveTypeDeChampOperation(typeDeChamp, index, queue) {
|
|||
return queue.enqueue({
|
||||
path: `/${typeDeChamp.id}/move`,
|
||||
method: 'patch',
|
||||
payload: { order_place: index }
|
||||
payload: { position: index }
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -37,8 +37,7 @@ export default function typeDeChampsReducer(state, { type, params, done }) {
|
|||
|
||||
function addTypeDeChamp(state, typeDeChamps, insertAfter, done) {
|
||||
const typeDeChamp = {
|
||||
...state.defaultTypeDeChampAttributes,
|
||||
order_place: typeDeChamps.length
|
||||
...state.defaultTypeDeChampAttributes
|
||||
};
|
||||
|
||||
createTypeDeChampOperation(typeDeChamp, state.queue)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue