From 1d315da0729d6d4995e78726d831971fc9bbdb9e Mon Sep 17 00:00:00 2001 From: j Date: Wed, 7 Sep 2022 12:19:39 +0200 Subject: [PATCH] fix loading edit --- app/static/js/ascroll.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/static/js/ascroll.js b/app/static/js/ascroll.js index 3da38a6..d52bbdb 100755 --- a/app/static/js/ascroll.js +++ b/app/static/js/ascroll.js @@ -219,8 +219,9 @@ async function loadClips(annotations) { var previous annotations.forEach(annotation => { - var clipId = annotation.clipId + var clipId = annotation.clipId || annotation.id.split('/')[0] + '/' + annotation.in.toFixed(3) + '-'+ annotation.out.toFixed(3) if (!colors[clipId]) { + console.log('no match for clip', clipId) return } clips[clipId] = clips[clipId] || {