From ea911e73c6c7be8cb51646ae5b9f8da0e453e2f3 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 22 Feb 2025 07:27:44 -0800 Subject: [PATCH] Fix: correct split confirm removal (#9195) --- .../split-confirm-dialog/split-confirm-dialog.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-ui/src/app/components/common/confirm-dialog/split-confirm-dialog/split-confirm-dialog.component.ts b/src-ui/src/app/components/common/confirm-dialog/split-confirm-dialog/split-confirm-dialog.component.ts index 785f2f3d4..437418367 100644 --- a/src-ui/src/app/components/common/confirm-dialog/split-confirm-dialog/split-confirm-dialog.component.ts +++ b/src-ui/src/app/components/common/confirm-dialog/split-confirm-dialog/split-confirm-dialog.component.ts @@ -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 }