fix warning message display on subsequently loaded news

This commit is contained in:
imperosol committed 2025-02-25 11:53:02 +01:00
1 parent 94d2c5660a
commit 01c92feb40
2 files changed
+3 -2

No files matched your search

@@ -54,7 +54,7 @@ document.addEventListener("alpine:init", () => {
* Query the server to know the number of news dates that would be moderated
* if this one is moderated.
*/
async nbModerated() {
async nbToModerate(): Promise<number> {
// What we want here is the count attribute of the response.
// We don't care about the actual results,
// so we ask for the minimum page size possible.