we can only update view if it exists. switch otherwise

This commit is contained in:
j 2023-06-24 16:13:25 +05:30
parent 64b8967ded
commit 94fc4fbe7a
1 changed files with 1 additions and 1 deletions

View File

@ -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
});