merge /m view

This commit is contained in:
j 2023-08-23 21:01:33 +02:00
commit 49187c8faf
8 changed files with 118 additions and 20 deletions

View file

@ -175,7 +175,6 @@ async function loadEdit(id, args) {
position += duration
})
Object.keys(clip.layers).forEach(layer => {
data.layers[layer] = data.layers[layer] || []
clip.layers[layer].forEach(annotation => {
if (args.users && !args.users.includes(annotation.user)) {
return
@ -193,6 +192,7 @@ async function loadEdit(id, args) {
clip['position'] + clip['duration'],
a.out - clip['in'] + clip['position']
);
data.layers[layer] = data.layers[layer] || []
data.layers[layer].push(a)
})
})