only set annotation if it exists

This commit is contained in:
j 2025-01-30 17:00:02 +05:30
commit d0d1feca18

View file

@ -222,7 +222,9 @@ pandora.ui.editor = function(data) {
});
}
that.updateAnnotation(data.id, result.data);
pandora.UI.set('videoPoints.' + ui.item + '.annotation', result.data.id.split('/')[1] || '');
if (result.data.id) {
pandora.UI.set('videoPoints.' + ui.item + '.annotation', result.data.id.split('/')[1] || '');
}
Ox.Request.clearCache();
};
var edit = {