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 Record); @@ -145,7 +145,7 @@ const EnvironmentsList: React.FC = () => { (env.environmentName || "").toLowerCase().includes(searchLower) || (env.environmentFrontendUrl || "").toLowerCase().includes(searchLower) || env.environmentId.toLowerCase().includes(searchLower) || - env.environmentType.toLowerCase().includes(searchLower) + (env.environmentType || "").toLowerCase().includes(searchLower) ); }).sort((a, b) => { // Sort by license status: licensed environments first diff --git a/client/packages/lowcoder/src/pages/setting/environments/components/EnvironmentsTable.tsx b/client/packages/lowcoder/src/pages/setting/environments/components/EnvironmentsTable.tsx index 0a1e9d98e..509cb509a 100644 --- a/client/packages/lowcoder/src/pages/setting/environments/components/EnvironmentsTable.tsx +++ b/client/packages/lowcoder/src/pages/setting/environments/components/EnvironmentsTable.tsx @@ -152,7 +152,7 @@ const EnvironmentsTable: React.FC = ({
{ - if (!envType) return 'UNKNOWN'; + if (!envType) return 'TEST'; return envType.toUpperCase(); }; \ No newline at end of file pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy