fix error in loading url titles
This commit is contained in:
parent
a96c8ae75c
commit
45a15da896
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue