mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 09:09:01 +00:00
Fix ordering when loading multiple files
This commit is contained in:
parent
41862ffde6
commit
f429fdcd0b
1 changed files with 1 additions and 1 deletions
|
|
@ -262,7 +262,7 @@ export function loadMediaFiles(tracks, loadStyle = null, atIndex = 0) {
|
|||
}
|
||||
tracks.forEach((track, i) => {
|
||||
const priority = i === 0 && loadStyle != null ? loadStyle : null;
|
||||
dispatch(loadMediaFile(track, priority, atIndex));
|
||||
dispatch(loadMediaFile(track, priority, atIndex + i));
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue