diff --git a/www/components/client_list.tsx b/www/components/client_list.tsx index 7f5b633..b079c0d 100644 --- a/www/components/client_list.tsx +++ b/www/components/client_list.tsx @@ -74,6 +74,7 @@ export const ClientList: React.FC = ({ Clients, Keyword, Trigge } as ClientTableSchema }) ?? data, pageCount: Math.ceil( + // @ts-ignore (dataQuery.data?.total == undefined ? 0 : dataQuery.data?.total) / fetchDataOptions.pageSize ?? 0, ), columns: clientColumnsDef, diff --git a/www/components/server_list.tsx b/www/components/server_list.tsx index 36fd0db..5c41657 100644 --- a/www/components/server_list.tsx +++ b/www/components/server_list.tsx @@ -74,6 +74,7 @@ export const ServerList: React.FC = ({ Servers, Keyword, Trigge } as ServerTableSchema }) ?? data, pageCount: Math.ceil( + //@ts-ignore (dataQuery.data?.total == undefined ? 0 : dataQuery.data?.total) / fetchDataOptions.pageSize ?? 0, ), columns: serverColumnsDef, diff --git a/www/components/stats/client_stats_card.tsx b/www/components/stats/client_stats_card.tsx index f62f9c3..c257e70 100644 --- a/www/components/stats/client_stats_card.tsx +++ b/www/components/stats/client_stats_card.tsx @@ -64,6 +64,7 @@ export const ClientStatsCard: React.FC = ({ clientID: defa }} /> proxyInfo.name).filter((value) => value !== undefined) || []} proxyName={proxyName} setProxyname={setProxyName} />