@@ -253,7 +253,7 @@ function page_load_document(args) { | |||
$.getJSON( | |||
conf.openapi + "/documents/" + docid, | |||
function (doc) { | |||
if ( $('.slick-slide') ) { | |||
if ( $('.slick-slide').length>0 ) { | |||
$('.autodoc_document_carousel').slick('unslick'); | |||
} | |||
$('.autodoc_document_carousel').children().remove(); |