fixed logic for whether to delete or redirect on cancel

Original logic was backwards.
Merge pull request #1 from sseago/edit_deployment

fixed logic for whether to delete or redirect on cancel