timeline: reverse priority on stack

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/900/head
Varun Patil 2023-10-28 18:00:40 -07:00
parent 4aed2946bf
commit ba12616c0e
1 changed files with 4 additions and 1 deletions

View File

@ -1072,7 +1072,10 @@ export default defineComponent({
// Get the list of files with the same basename
const fileList = files.get(basename);
if (fileList?.length) {
// Found main file
// Move main file to end (min priority)
const main = fileList.shift()!;
fileList.push(main);
// Do not add this to result
continue;
}