From 0dfed9de74008e7cfc5d2e40f75f2af753e44d7a Mon Sep 17 00:00:00 2001 From: j Date: Fri, 30 Jun 2023 15:56:41 +0530 Subject: [PATCH] no annotations --- source/UI/js/Video/VideoPlayerPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/UI/js/Video/VideoPlayerPanel.js b/source/UI/js/Video/VideoPlayerPanel.js index a1908bcb..336277e4 100644 --- a/source/UI/js/Video/VideoPlayerPanel.js +++ b/source/UI/js/Video/VideoPlayerPanel.js @@ -478,7 +478,7 @@ Ox.VideoPlayerPanel = function(options, self) { } function getAnnotations() { - return Ox.flatten(self.options.layers.map(function(layer) { + return !self.options.layers ? [] : Ox.flatten(self.options.layers.map(function(layer) { return layer.items.map(function(item) { return {id: item.id, 'in': item['in'], out: item.out, text: item.value}; });