refactor(attachment): remove useless id arg

This commit is contained in:
Colin Darie 2022-11-21 16:06:32 +01:00
parent 0a114270af
commit df135b080b
4 changed files with 7 additions and 13 deletions

View file

@ -3,10 +3,10 @@
- each_attachment do |attachment, index|
%div{ id: dom_id(attachment) }
= render Attachment::EditComponent.new(champ:, attached_file:, attachment:, id:, index:, as_multiple: true)
= render Attachment::EditComponent.new(champ:, attached_file:, attachment:, index:, as_multiple: true)
%div{ id: empty_component_id, class: class_names("hidden": !can_attach_next?) }
= render Attachment::EditComponent.new(champ:, attached_file:, attachment: nil, id:, index: attachments_count)
= render Attachment::EditComponent.new(champ:, attached_file:, attachment: nil, index: attachments_count)
// single poll and refresh message for all attachments
- if in_progress?