Skip to content

Commit

Permalink
Fixing hierarchy in statement
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 committed Dec 9, 2023
1 parent cba9117 commit 0e5683c
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions src/dispatch/static/dispatch/src/case/ReportSubmissionCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -226,34 +226,33 @@ export default {
}
if (this.$route.query.case_type) {
this.case_type = this.$route.query.case_type
}
let filterOptions = {
q: "",
sortBy: ["name"],
descending: [false],
itemsPerPage: this.numItems,
}
if (this.project) {
filterOptions = {
filters: {
project: [this.project],
name: [this.$route.query.case_type],
enabled: ["true"],
},
...filterOptions,
let filterOptions = {
q: "",
sortBy: ["name"],
descending: [false],
itemsPerPage: this.numItems,
}
}
filterOptions = SearchUtils.createParametersFromTableOptions({ ...filterOptions })
CaseTypeApi.getAll(filterOptions).then((response) => {
if (response.data.items.length > 0) {
this.case_type = response.data.items[0]
} else {
this.case_type = this.$route.query.case_type
if (this.project) {
filterOptions = {
filters: {
project: [this.project],
name: [this.$route.query.case_type],
enabled: ["true"],
},
...filterOptions,
}
}
})
filterOptions = SearchUtils.createParametersFromTableOptions({ ...filterOptions })
CaseTypeApi.getAll(filterOptions).then((response) => {
if (response.data.items.length > 0) {
this.case_type = response.data.items[0]
} else {
this.case_type = this.$route.query.case_type
}
})
}
if (this.$route.query.case_priority) {
this.case_priority = { name: this.$route.query.case_priority }
Expand Down

0 comments on commit 0e5683c

Please sign in to comment.