]> git.evergreen-ils.org Git - Evergreen.git/commit
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:13:19 +0000 (18:13 -0500)
commit1c061dd30a02a03bfe9d8043057b28e87aa910b2
treedfaa1f1d42d04c47b99442a3bfa57a14afcd72eb
parent86bd68a432c60d14c766288b21cf130e956bf84d
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