From 290afaf332be1e84e2bf66551546af164edffda6 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 18 Sep 2020 10:41:13 +0200 Subject: [PATCH] folder might have gone --- source/UI/js/Video/AnnotationPanel.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/UI/js/Video/AnnotationPanel.js b/source/UI/js/Video/AnnotationPanel.js index 4e896767..cfe75a03 100644 --- a/source/UI/js/Video/AnnotationPanel.js +++ b/source/UI/js/Video/AnnotationPanel.js @@ -805,7 +805,10 @@ Ox.AnnotationPanel = function(options, self) { // called from editannotation callback // on the first update of a new annotation, the id will change self.options.selected = item.id; - getFolder(id).updateItem(id, item); + var $folder = getFolder(id); + if ($folder) { + $folder.updateItem(id, item); + } updateLanguages(); renderOptionsMenu(); renderEditMenu();