Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,15 @@ export default {
project: {
handler(newProject) {
if (newProject?.id !== this.lastProjectId) {
this.lastProjectId = newProject?.id
this.resetSelection()
this.fetchData()
// Check if we're moving to a valid project (not null)
if (this.lastProjectId) {
this.lastProjectId = newProject.id
this.resetSelection()
this.fetchData()
} else {
// If new project is null/undefined, just update lastProjectId
this.lastProjectId = null
}
}
this.validatePriority()
},
Expand Down
12 changes: 9 additions & 3 deletions src/dispatch/static/dispatch/src/case/type/CaseTypeSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,15 @@ export default {
project: {
handler(newProject) {
if (newProject?.id !== this.lastProjectId) {
this.lastProjectId = newProject?.id
this.resetSelection()
this.fetchData()
// Check if we're moving to a valid project (not null)
if (this.lastProjectId) {
this.lastProjectId = newProject.id
this.resetSelection()
this.fetchData()
} else {
// If new project is null/undefined, just update lastProjectId
this.lastProjectId = null
}
}
this.validateType()
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,17 @@ export default {
project: {
handler(newProject) {
if (newProject?.id !== this.lastProjectId) {
this.lastProjectId = newProject?.id
this.resetSelection()
this.fetchData()
// Check if we're moving to a valid project (not null)
if (this.lastProjectId) {
this.lastProjectId = newProject.id
this.resetSelection()
this.fetchData()
} else {
// If new project is null/undefined, just update lastProjectId
this.lastProjectId = null
}
}

this.validatePriority()
},
deep: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,15 @@ export default {
project: {
handler(newProject) {
if (newProject?.id !== this.lastProjectId) {
this.lastProjectId = newProject?.id
this.clearSelection()
this.fetchData()
// Check if we're moving to a valid project (not null)
if (this.lastProjectId) {
this.lastProjectId = newProject.id
this.resetSelection()
this.fetchData()
} else {
// If new project is null/undefined, just update lastProjectId
this.lastProjectId = null
}
}
},
},
Expand Down
Loading