Skip to content

Commit

Permalink
Avoid fetching data on sheet close (#4132)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgliss authored Dec 15, 2023
1 parent ceac971 commit 9671a58
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/dispatch/static/dispatch/src/case/EditSheet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion src/dispatch/static/dispatch/src/data/source/Detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"]),
},
Expand Down
4 changes: 3 additions & 1 deletion src/dispatch/static/dispatch/src/incident/EditSheet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"]),
},
Expand Down

0 comments on commit 9671a58

Please sign in to comment.