The Edit History of the document will be saved and your could view the history and restore the document to the version you want.
Desktop #
Open the document and click Saved under the title. You will see the history and restore the document to a specific version.