Skip to content

Commit be6e482

Browse files
committed
fix(trackmap): fix track generation
1 parent 2b31581 commit be6e482

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/download-track-svgs.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ export const downloadTrackSvgs = async () => {
1212

1313
const allTracks: Record<string, TrackAsset> = JSON.parse(tracks);
1414

15-
Object.values(allTracks).forEach(async (track) => {
16-
await downloadTrackSvgs(track);
17-
});
15+
await Promise.all(Object.values(allTracks).map(downloadTrackSvgs));
1816

1917
async function downloadTrackSvgs(track: TrackAsset) {
2018
for (const [, layer] of Object.entries(track.track_map_layers)) {

0 commit comments

Comments
 (0)