fix(editor champ): do not raise on destroy replay

This commit is contained in:
simon lehericey 2022-10-11 16:27:49 +02:00
parent b6f3b51522
commit 7672ad3fe9
3 changed files with 12 additions and 3 deletions

View file

@ -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