The published version of your project becomes different from the version displayed in the editor as soon as you add a new widget.
If you made unwanted changes and need to revert the updates in the Editor mode, open your Project Menu (M), click the three dots next to the Republish button in your project settings, and choose click Restore to last published. PickChoose the Restore option in the pop-up panel. As a result, the published version of your project will be recreated in the Editor mode.
Note: it is not possible to revert to the previous version of your project as soon as the Restore to last published button is clicked.