Skip to content

Commit f7775ac

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

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
@@ -153,7 +153,7 @@ export class LayerComposer {
153153
}
154154

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

158158
return { layers, positions, totalHeight, totalWidth };
159159
}

0 commit comments

Comments
 (0)