folder might have gone

This commit is contained in:
j 2020-09-18 10:41:13 +02:00
parent e497e7a7ac
commit 290afaf332

View file

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