samvera-deprecated / sufia

[DEPRECATED] Sufia: a fully featured, flexible Samvera repository front-end.
http://sufia.io/
Other
111 stars 78 forks source link

Avoid JS error when there are no admin sets on the page. #3155

Closed jcoyne closed 7 years ago

jcoyne commented 7 years ago

Prevents a null pointer error. Fixes #3153

hackartisan commented 7 years ago

just checked out this branch and tried it out. looks like the null has moved.

https://gist.github.com/hackmastera/9ae046cb40fcb69f4b2edfe9f3762acd

hackartisan commented 7 years ago

@jcoyne I can generate more javascript errors if I forget to even run the default_admin_set:create task: https://gist.github.com/hackmastera/33e416218fedfbf97da69997904351eb

Not sure how long you want to play this game, though.

jcoyne commented 7 years ago

@hackmastera I had a stupid typo. Try again?

hackartisan commented 7 years ago

nice!