How to reproduce:
-Edit an existing job with at least one existing step.
-Add a new step (a script one for my example)
-start to write inside
-Click on existing upper step and click remove
The new one but not yet saved is also removed
prevent editing multiple steps fix #1315