From 7f41ac1ea4e2ead76bc617af3ac2f91ceeec95b0 Mon Sep 17 00:00:00 2001 From: Emiel Van Severen Date: Sun, 8 Dec 2024 20:28:43 +0100 Subject: [PATCH 1/2] bugfix(web-main): players/users with role showing incorrect amount --- .../src/routes/_auth/_global/-roles/RolesTableView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web-main/src/routes/_auth/_global/-roles/RolesTableView.tsx b/packages/web-main/src/routes/_auth/_global/-roles/RolesTableView.tsx index ecb2871c37..975758c749 100644 --- a/packages/web-main/src/routes/_auth/_global/-roles/RolesTableView.tsx +++ b/packages/web-main/src/routes/_auth/_global/-roles/RolesTableView.tsx @@ -148,7 +148,7 @@ const PlayerCount: FC<{ roleId: string }> = ({ roleId }) => { return 'unknown'; } - return data.data.length; + return data.meta.total; }; const UserCount: FC<{ roleId: string }> = ({ roleId }) => { @@ -164,5 +164,5 @@ const UserCount: FC<{ roleId: string }> = ({ roleId }) => { return 'unknown'; } - return data.data.length; + return data.meta.total; }; From 29016036a7846609b38272ba3ec9aaec13aa2de9 Mon Sep 17 00:00:00 2001 From: Emiel Van Severen Date: Sun, 8 Dec 2024 20:37:03 +0100 Subject: [PATCH 2/2] fix: package-lock --- package-lock.json | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index dc394f5ec7..bddb01c616 100644 --- a/package-lock.json +++ b/package-lock.json @@ -44102,13 +44102,13 @@ } }, "node_modules/unplugin": { - "version": "1.12.2", + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-1.16.0.tgz", + "integrity": "sha512-5liCNPuJW8dqh3+DM6uNM2EI3MLLpCKp/KY+9pB5M2S2SR2qvvDHhKgBOaTWEbZTAws3CXfB0rKTIolWKL05VQ==", "dev": true, "license": "MIT", "dependencies": { - "acorn": "^8.12.1", - "chokidar": "^3.6.0", - "webpack-sources": "^3.2.3", + "acorn": "^8.14.0", "webpack-virtual-modules": "^0.6.2" }, "engines": { @@ -44116,7 +44116,9 @@ } }, "node_modules/unplugin/node_modules/acorn": { - "version": "8.12.1", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", + "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", "dev": true, "license": "MIT", "bin": {