Closing unsaved document should discard all edits

Alternative, click Revision Control from the right bottom, select “Unsaved(1)” and then click Discard unsaved changes button from right panel.