From 94fc4fbe7ab89a737d8fb8093d3232eab356ceef Mon Sep 17 00:00:00 2001 From: j Date: Sat, 24 Jun 2023 16:13:25 +0530 Subject: [PATCH] we can only update view if it exists. switch otherwise --- static/js/info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/info.js b/static/js/info.js index 38bcef79..305b40b2 100644 --- a/static/js/info.js +++ b/static/js/info.js @@ -142,7 +142,7 @@ pandora.ui.info = function() { }) .bindEvent({ click: function(data) { - if (ui.item && ['timeline', 'player', 'editor'].indexOf(ui.itemView) > -1) { + if (ui.item && ['timeline', 'player', 'editor'].indexOf(ui.itemView) > -1 && pandora.$ui[ui.itemView]) { pandora.$ui[ui.itemView].options({ position: data.position });