perf(types_de_champs_controller): avoid n+1 query in select_champ_template_position_component
This commit is contained in:
parent
50d148d412
commit
4f0e247883
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
class TypesDeChampEditor::SelectChampTemplatePositionComponent < ApplicationComponent
|
||||
def initialize(block:, coordinates:)
|
||||
@block = block
|
||||
@coordinates = coordinates
|
||||
@coordinates = coordinates.includes(:type_de_champ)
|
||||
end
|
||||
|
||||
def block_id
|
||||
|
|
Loading…
Reference in a new issue