From b1f13a0a1a7945b7dd017d89fbd6effd75daced7 Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Thu, 24 Jun 2021 18:11:39 -0400 Subject: [PATCH] Don't fire navguard on subroute --- app/src/modules/insights/routes/dashboard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/modules/insights/routes/dashboard.vue b/app/src/modules/insights/routes/dashboard.vue index c151936887..50463106f9 100644 --- a/app/src/modules/insights/routes/dashboard.vue +++ b/app/src/modules/insights/routes/dashboard.vue @@ -255,7 +255,7 @@ export default defineComponent({ const leaveTo = ref(null); const editsGuard: NavigationGuard = (to) => { - if (editMode.value) { + if (editMode.value && to.params.primaryKey !== props.primaryKey) { confirmLeave.value = true; leaveTo.value = to.fullPath; return false;