Skip to content

Commit

Permalink
delete not selected unsubmitted titles and thumbs on submit
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Nov 29, 2024
1 parent 5415827 commit f2eef01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/submission/submitButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ export class SubmitButton {
selected: true
});
}

unsubmitted.titles = unsubmitted.titles.filter((t) => t.selected);
}

if (thumbnail) {
Expand Down Expand Up @@ -293,6 +295,8 @@ export class SubmitButton {
}
}
}

unsubmitted.thumbnails = unsubmitted.thumbnails.filter((t) => t.selected);
}
} else {
delete Config.local!.unsubmitted[getVideoID()!];
Expand Down

0 comments on commit f2eef01

Please sign in to comment.