Skip to content

Commit 8cec302

Browse files
committed
fix: await song parsing since it's now an async function
1 parent 8932dda commit 8cec302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/modules/song-edit/components/client/context/EditSong.context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export const EditSongProvider = ({
246246
).data as ArrayBuffer;
247247

248248
// convert to song
249-
const song = parseSongFromBuffer(songFile);
249+
const song = await parseSongFromBuffer(songFile);
250250

251251
// pad instruments array for safety
252252
const songInstruments = Array(song.instruments.length).fill('');

0 commit comments

Comments
 (0)