diff --git a/static/js/editPanel.js b/static/js/editPanel.js index 3f82fc662..850c2eb13 100644 --- a/static/js/editPanel.js +++ b/static/js/editPanel.js @@ -52,6 +52,9 @@ pandora.ui.editPanel = function(isEmbed) { } function getSmallTimelineURL() { + if (!edit.duration) { + return '' + } smallTimelineCanvas = getSmallTimelineCanvas(); smallTimelineContext = smallTimelineCanvas.getContext('2d'); return smallTimelineCanvas.toDataURL();