hierarchy-select
hierarchy-select copied to clipboard
fix to work with empty list / older version of jquery
I was getting console errors due to the selected variable evaluating true when it was empty. This fix just makes sure there are 1 or more elements to act on. This may be due to an older version of jquery but either way it's a compatible / future proof fix.
It may be worth looking for same issue in other branches.