don't populate empty layers
This commit is contained in:
parent
88b291be40
commit
d995ea0c6f
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,6 @@ async function loadEdit(id, args) {
|
||||||
position += duration
|
position += duration
|
||||||
})
|
})
|
||||||
Object.keys(clip.layers).forEach(layer => {
|
Object.keys(clip.layers).forEach(layer => {
|
||||||
data.layers[layer] = data.layers[layer] || []
|
|
||||||
clip.layers[layer].forEach(annotation => {
|
clip.layers[layer].forEach(annotation => {
|
||||||
if (args.users && !args.users.includes(annotation.user)) {
|
if (args.users && !args.users.includes(annotation.user)) {
|
||||||
return
|
return
|
||||||
|
@ -193,6 +192,7 @@ async function loadEdit(id, args) {
|
||||||
clip['position'] + clip['duration'],
|
clip['position'] + clip['duration'],
|
||||||
a.out - clip['in'] + clip['position']
|
a.out - clip['in'] + clip['position']
|
||||||
);
|
);
|
||||||
|
data.layers[layer] = data.layers[layer] || []
|
||||||
data.layers[layer].push(a)
|
data.layers[layer].push(a)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue