Fix: correct split confirm removal (#9195)

This commit is contained in:
shamoon 2025-02-22 07:27:44 -08:00 committed by GitHub
parent 6b7fb286f7
commit ea911e73c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -84,7 +84,7 @@ export class SplitConfirmDialogComponent
addSplit() {
if (this.page === this.totalPages) return
this.pages.add(this.page)
this.pages = new Set(Array.from(this.pages).sort())
this.pages = new Set(Array.from(this.pages).sort((a, b) => a - b))
this.confirmButtonEnabled = this.pages.size > 0
}