LP1793196 Fix console error when none selected
authorRemington Steed <rjs7@calvin.edu>
Fri, 8 Mar 2019 20:27:45 +0000 (15:27 -0500)
committerDan Wells <dbw2@calvin.edu>
Fri, 8 Mar 2019 23:15:19 +0000 (18:15 -0500)
commit7c8ca2dadd8112b6091838d3067f84235490c7b2
tree815137a04e16e0827356e10ec9d88c8bb5ba5576
parent8b763c00e90851231e83ea364bf8129cdddf1210
LP1793196 Fix console error when none selected

If you open the dropdown and close it without selecting anything, the
console shows an error complaining that $scope.selected is undefined.
This commit checks that it exists in that case before using it.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/web/js/ui/default/staff/services/ui.js