fix loading edit
This commit is contained in:
parent
a27e1d4686
commit
1d315da072
1 changed files with 2 additions and 1 deletions
|
@ -219,8 +219,9 @@ async function loadClips(annotations) {
|
||||||
var previous
|
var previous
|
||||||
|
|
||||||
annotations.forEach(annotation => {
|
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]) {
|
if (!colors[clipId]) {
|
||||||
|
console.log('no match for clip', clipId)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
clips[clipId] = clips[clipId] || {
|
clips[clipId] = clips[clipId] || {
|
||||||
|
|
Loading…
Reference in a new issue