From f6b45ff89e6b3e16be3ef2afe91905b9c14278c7 Mon Sep 17 00:00:00 2001 From: Moe Date: Tue, 22 Nov 2022 18:14:58 -0800 Subject: [PATCH] make videosTable thumbnail check more strict --- web/assets/js/bs5.videosTable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/assets/js/bs5.videosTable.js b/web/assets/js/bs5.videosTable.js index 1f1bac05..edc093c7 100644 --- a/web/assets/js/bs5.videosTable.js +++ b/web/assets/js/bs5.videosTable.js @@ -13,7 +13,7 @@ $(document).ready(function(e){ var frameUrlCacheTimeouts = {} async function getSnapshotFromVideoTimeFrame(monitorId,startDate,endDate){ const frameUrlCacheId = `${monitorId}${startDate}${endDate}` - if(frameUrlCache[frameUrlCacheId]){ + if(typeof frameUrlCache[frameUrlCacheId] === 'string'){ return frameUrlCache[frameUrlCacheId] }else{ const frame = (await getTimelapseFrames(monitorId,startDate,endDate,1))[0]