fix loading edit

This commit is contained in:
j 2022-09-07 12:19:39 +02:00
parent a27e1d4686
commit 1d315da072

View file

@ -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] || {