diff --git a/src/dispatch/static/dispatch/src/case/EditSheet.vue b/src/dispatch/static/dispatch/src/case/EditSheet.vue index 9d555304dcba..097a626acfb3 100644 --- a/src/dispatch/static/dispatch/src/case/EditSheet.vue +++ b/src/dispatch/static/dispatch/src/case/EditSheet.vue @@ -139,7 +139,9 @@ export default { methods: { fetchDetails() { - this.getDetails({ name: this.$route.params.name }) + if (this.$route.params.name) { + this.getDetails({ name: this.$route.params.name }) + } }, ...mapActions("case_management", [ "save", diff --git a/src/dispatch/static/dispatch/src/data/source/Detail.vue b/src/dispatch/static/dispatch/src/data/source/Detail.vue index ea1444410e4f..974dd6318816 100644 --- a/src/dispatch/static/dispatch/src/data/source/Detail.vue +++ b/src/dispatch/static/dispatch/src/data/source/Detail.vue @@ -91,7 +91,9 @@ export default { }, methods: { fetchDetails() { - this.getDetails({ name: this.$route.params.name }) + if (this.$route.params.name) { + this.getDetails({ name: this.$route.params.name }) + } }, ...mapActions("source", ["getDetails", "createEditShow"]), }, diff --git a/src/dispatch/static/dispatch/src/incident/EditSheet.vue b/src/dispatch/static/dispatch/src/incident/EditSheet.vue index 0969c296c882..76c01766432c 100644 --- a/src/dispatch/static/dispatch/src/incident/EditSheet.vue +++ b/src/dispatch/static/dispatch/src/incident/EditSheet.vue @@ -141,7 +141,9 @@ export default { methods: { fetchDetails() { - this.getDetails({ name: this.$route.params.name }) + if (this.$route.params.name) { + this.getDetails({ name: this.$route.params.name }) + } }, ...mapActions("incident", ["save", "getDetails", "closeEditSheet"]), },