From f429fdcd0b6b6cd36c364f9f7a157afab501f193 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Wed, 28 Feb 2018 16:26:42 -0800 Subject: [PATCH] Fix ordering when loading multiple files --- js/actionCreators.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/actionCreators.js b/js/actionCreators.js index 0ef1940d..85259a09 100644 --- a/js/actionCreators.js +++ b/js/actionCreators.js @@ -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)); }); }; }