Skip to content

Commit feb158c

Browse files
committed
fix error flicker
1 parent 0c802d0 commit feb158c

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

client/packages/lowcoder/src/pages/setting/environments/EnvironmentDetail.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ const EnvironmentDetail: React.FC = () => {
8888
{/* Add more menu items here if needed */}
8989
</Menu>
9090
);
91+
debugger
9192

9293
if (isLoadingEnvironment) {
9394
return (

client/packages/lowcoder/src/pages/setting/environments/WorkspaceDetail.tsx

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,30 +84,22 @@ const WorkspaceDetail: React.FC = () => {
8484
}
8585
};
8686

87-
if (envLoading || workspaceLoading) {
87+
if (envLoading || workspaceLoading ) {
8888
return (
8989
<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', height: '100%', padding: '50px' }}>
9090
<Spin size="large" tip="Loading workspace details..." />
9191
</div>
9292
);
9393
}
94-
95-
if (envError || workspaceError || !environment || !workspace) {
94+
95+
if (!environment || !workspace) {
9696
return (
97-
<Alert
98-
message="Error loading workspace details"
99-
description={envError || workspaceError || "Workspace not found."}
100-
type="error"
101-
showIcon
102-
style={{ margin: '24px' }}
103-
action={
104-
<Button type="primary" onClick={() => history.push(`/setting/environments/${environmentId}`)}>
105-
Back to Environment
106-
</Button>
107-
}
108-
/>
109-
);
97+
<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', height: '100%', padding: '50px' }}>
98+
<Typography.Title level={3}>Workspace not found</Typography.Title>
99+
</div>
100+
)
110101
}
102+
111103

112104
return (
113105
<div

0 commit comments

Comments
 (0)