The fix for this issue is now available in the latest update of InDesign – that is, InDesign 15.0.2.
Please update your InDesign application to get this fix.
Adobe InDesign team
An error occurred while saving the commentPaul Bryant commented
Same here. I make a few changes to a file, then try to undo and it jumps back to the previously saved version. I'm unable to work.