Reload gojs diagram

After some modification on the diagram ,
I want to reload (construct ) the diagram to the (initial) original state
but it’s not working
Any propositions ?

You should probably store the initial model, then replace the Diagram.model with the saved model.