fix(editor champ): do not raise on destroy replay
This commit is contained in:
parent
b6f3b51522
commit
7672ad3fe9
3 changed files with 12 additions and 3 deletions
|
@ -72,8 +72,10 @@ module Administrateurs
|
|||
reset_procedure
|
||||
flash.notice = "Formulaire enregistré"
|
||||
|
||||
@destroyed = @coordinate
|
||||
@morphed = champ_components_starting_at(@coordinate)
|
||||
if @coordinate.present?
|
||||
@destroyed = @coordinate
|
||||
@morphed = champ_components_starting_at(@coordinate)
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue