Content-Length: 3758 | pFad | http://github.com/lowcoder-org/lowcoder/pull/1723.diff
thub.com diff --git a/client/packages/lowcoder/src/pages/setting/environments/EnvironmentsList.tsx b/client/packages/lowcoder/src/pages/setting/environments/EnvironmentsList.tsx index c6f739c51..7b041b81f 100644 --- a/client/packages/lowcoder/src/pages/setting/environments/EnvironmentsList.tsx +++ b/client/packages/lowcoder/src/pages/setting/environments/EnvironmentsList.tsx @@ -82,7 +82,7 @@ const EnvironmentsList: React.FC = () => { // Calculate environment type statistics const environmentStats = React.useMemo(() => { const stats = environments.reduce((acc, env) => { - const type = env.environmentType.toUpperCase(); + const type = env.environmentType?.toUpperCase() || 'TEST'; acc[type] = (acc[type] || 0) + 1; return acc; }, {} as RecordFetched URL: http://github.com/lowcoder-org/lowcoder/pull/1723.diff
Alternative Proxies: