From 9355ae691d5c0692ac4a6d1726d2d97a88fb8bd0 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 9 Jul 2023 15:43:50 +0530 Subject: [PATCH] return empty string instead of invalid data url --- static/js/editPanel.js | 3 +++ 1 file changed, 3 insertions(+) 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();