Skip to content

Commit 2258a3a

Browse files
committed
fix: add collaterally changed assets
1 parent 0395082 commit 2258a3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/client/src/states/timeline-assets.svelte.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export function handleOverlap(asset: ITimelineAsset) {
6464
const files: ITimelineAsset[] = [];
6565

6666
rowAssets[asset.col] = { ...rowAssets[asset.col], ...asset };
67+
files.push(rowAssets[asset.col]);
6768
rowAssets.sort((a, b) => a.start - b.start);
6869
rowAssets.forEach((a, i) => (a.col = i));
6970

@@ -73,11 +74,11 @@ export function handleOverlap(asset: ITimelineAsset) {
7374

7475
if (prev.start <= curr.start && curr.start <= prev.start + prev.length) {
7576
curr.start = prev.start + prev.length;
77+
files.push(curr);
7678
}
7779
}
7880

7981
timelineAssetState.assets[asset.row] = rowAssets;
80-
files.push(timelineAssetState.assets[asset.row][asset.col]);
8182

8283
const form = timelineAssetState.formRef;
8384

0 commit comments

Comments
 (0)