fix discard not closing on singleton (#4727)

This commit is contained in:
Nitwel
2021-03-29 16:13:00 +02:00
committed by GitHub
parent bb9b39187b
commit 70b15eef46

View File

@@ -469,6 +469,7 @@ export default defineComponent({
function discardAndLeave() {
if (!leaveTo.value) return;
edits.value = {};
confirmLeave.value = false;
router.push(leaveTo.value);
}