From 0d51906dd8173e827cf700c072e79735ab61d3f9 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 1 Mar 2017 12:51:19 +0100 Subject: [PATCH] renderGroup can return nothing --- static/js/infoView.indiancinema.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/infoView.indiancinema.js b/static/js/infoView.indiancinema.js index c09f2221..636384c7 100644 --- a/static/js/infoView.indiancinema.js +++ b/static/js/infoView.indiancinema.js @@ -373,7 +373,7 @@ pandora.ui.infoView = function(data) { } // Extra Metadata - renderGroup([ + var extra = renderGroup([ 'presentedby', 'coproducer', 'associateproducer', @@ -385,7 +385,8 @@ pandora.ui.infoView = function(data) { 'screenplay', 'dialogue', 'adaptation' - ]).css({marginTop: '12px'}); + ]) + extra && extra.css({marginTop: '12px'}); renderGroup([ 'musicdirector', 'backgroundmusic',