From 48fd133b6dc6ed50d87ae4d5412cb16207d624c0 Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Sat, 12 Apr 2025 23:01:35 +0200 Subject: [PATCH] Fix pageChange emission to use history length Modified the `ngOnChanges` method to emit the length of the history instead of the current page. This ensures accurate data is provided to parent components during changes. --- frontend/src/app/bans/history/history.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/bans/history/history.component.ts b/frontend/src/app/bans/history/history.component.ts index 631671b..dca33d5 100644 --- a/frontend/src/app/bans/history/history.component.ts +++ b/frontend/src/app/bans/history/history.component.ts @@ -36,7 +36,7 @@ export class HistoryComponent implements OnInit, OnChanges { ngOnChanges(): void { this.reloadHistory(); - this.pageChange.emit(this.page); + this.pageChange.emit(this.history.length); } ngOnInit(): void {