Skip to content

Commit

Permalink
changing rescue type on incident causes null entity bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
OSPFNeighbour committed Oct 14, 2024
1 parent 42fbe13 commit 4eb8b85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/injectscripts/jobs/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ function tableToObj(table) {


function UpdateAssignedToBoxesActive() {
if (vm.entityAssignedTo.peek() != null) {
$(`#nearest-rescue-lhq-text a[data-unit!='${vm.entityAssignedTo.peek().Code}'], #nearest-lhq-text a[data-unit!='${vm.entityAssignedTo.peek().Code}'] `).removeClass('active')
$(`#nearest-rescue-lhq-text a[data-unit='${vm.entityAssignedTo.peek().Code}'], #nearest-lhq-text a[data-unit='${vm.entityAssignedTo.peek().Code}']`).addClass('active')
}
}

0 comments on commit 4eb8b85

Please sign in to comment.