diff --git a/static/js/textPanel.js b/static/js/textPanel.js index 1817d454..1c28966d 100644 --- a/static/js/textPanel.js +++ b/static/js/textPanel.js @@ -338,7 +338,8 @@ pandora.ui.textHTML = function(text) { }).css({ width: getWidth() + 'px' }); - scrollTo(pandora.user.ui.texts[pandora.user.ui.text].position || 0); + pandora.user.ui.texts[pandora.user.ui.text] && + scrollTo(pandora.user.ui.texts[pandora.user.ui.text].position || 0); return that; };