Graphql: Fix champs sort in repetition
This commit is contained in:
parent
8cd8e6064a
commit
63a4a13323
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class DossierPreloader
|
||||||
end
|
end
|
||||||
|
|
||||||
parent.association(name).target = champs.sort_by do |champ|
|
parent.association(name).target = champs.sort_by do |champ|
|
||||||
positions[dossier.revision_id][champ.type_de_champ_id]
|
[champ.row, positions[dossier.revision_id][champ.type_de_champ_id]]
|
||||||
end
|
end
|
||||||
|
|
||||||
# Load children champs
|
# Load children champs
|
||||||
|
|
Loading…
Add table
Reference in a new issue