Skip to content

Commit 6e2b8fa

Browse files
authored
Update web/libs/editor/src/lib/AudioUltra/Visual/Composition/LayerComposer.ts
1 parent 3b0e9bf commit 6e2b8fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/libs/editor/src/lib/AudioUltra/Visual/Composition/LayerComposer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class LayerComposer {
120120
}
121121

122122
// Sort layers by z-index (index property) to ensure proper rendering order
123-
const layers = [...unsortedLayers].sort((a, b) => a.index - b.index);
123+
const layers = unsortedLayers.sort((a, b) => a.index - b.index);
124124

125125
return { layers, positions, totalHeight, totalWidth };
126126
}

0 commit comments

Comments
 (0)