Fixes bug when user clicks save in details view without first ending their edit