From ba12616c0e59db7df1964c8bcd2700b053a12084 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 28 Oct 2023 18:00:40 -0700 Subject: [PATCH] timeline: reverse priority on stack Signed-off-by: Varun Patil --- src/components/Timeline.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Timeline.vue b/src/components/Timeline.vue index 9dfeb173..f0898ede 100644 --- a/src/components/Timeline.vue +++ b/src/components/Timeline.vue @@ -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; }