fix error in loading url titles

This commit is contained in:
Devin Howard 2017-02-01 12:37:50 -05:00
parent a96c8ae75c
commit 45a15da896

View file

@ -374,7 +374,7 @@ const Import = {
$.get('/hacks/load_url_title', {
url
}, function success(data, textStatus) {
if (data.trim() === '') return
if (typeof data === 'string' && data.trim() === '') return
var selector = '#showcard #topic_' + topic.get('id') + ' .best_in_place'
if ($(selector).find('form').length > 0) {
$(selector).find('textarea, input').val(data.title)