dont fail if no videopoints exist

This commit is contained in:
j 2023-07-12 15:07:39 +05:30
parent e7292a5989
commit 5466247848

View file

@ -34,7 +34,7 @@ pandora.ui.item = function() {
if (isVideoView && result.data.duration) {
var videoPoints = pandora.user.ui.videoPoints[item], set = {};
['in', 'out', 'position'].forEach(point => {
if (videoPoints[point] > result.data.duration) {
if (videoPoints && videoPoints[point] > result.data.duration) {
set[point] = result.data.duration;
}
})