File tree Expand file tree Collapse file tree 2 files changed +1
-32
lines changed
client/packages/lowcoder/src/pages/setting/environments Expand file tree Collapse file tree 2 files changed +1
-32
lines changed Original file line number Diff line number Diff line change @@ -72,13 +72,7 @@ const EnvironmentDetail: React.FC = () => {
72
72
refreshManagedWorkspaces,
73
73
} = useManagedWorkspaces ( environment ) ;
74
74
75
- const {
76
- userGroups,
77
- loading : userGroupsLoading ,
78
- error : userGroupsError ,
79
- refresh : refreshUserGroups ,
80
- userGroupStats,
81
- } = useEnvironmentUserGroups ( environment ) ;
75
+
82
76
83
77
// Use the custom hook to handle data fetching and state management
84
78
// Use the custom hook to handle data fetching and state management
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ const UserGroupsTab: React.FC<UserGroupsTabProps> = ({ environment }) => {
16
16
userGroups,
17
17
loading : userGroupsLoading ,
18
18
error : userGroupsError ,
19
- refresh : refreshUserGroups ,
20
19
userGroupStats,
21
20
} = useEnvironmentUserGroups ( environment ) ;
22
21
@@ -32,14 +31,6 @@ const UserGroupsTab: React.FC<UserGroupsTabProps> = ({ environment }) => {
32
31
} }
33
32
>
34
33
< Title level = { 5 } > User Groups in this Environment</ Title >
35
- < Button
36
- icon = { < SyncOutlined /> }
37
- onClick = { refreshUserGroups }
38
- size = "small"
39
- loading = { userGroupsLoading }
40
- >
41
- Refresh User Groups
42
- </ Button >
43
34
</ div >
44
35
45
36
{ /* User Group Statistics */ }
@@ -77,22 +68,6 @@ const UserGroupsTab: React.FC<UserGroupsTabProps> = ({ environment }) => {
77
68
type = "error"
78
69
showIcon
79
70
style = { { marginBottom : "16px" } }
80
- action = {
81
- userGroupsError . includes ( "No API key configured" ) ||
82
- userGroupsError . includes ( "No API service URL configured" ) ? (
83
- < Button size = "small" type = "primary" disabled >
84
- Configuration Required
85
- </ Button >
86
- ) : (
87
- < Button
88
- size = "small"
89
- type = "primary"
90
- onClick = { refreshUserGroups }
91
- >
92
- Try Again
93
- </ Button >
94
- )
95
- }
96
71
/>
97
72
) }
98
73
You can’t perform that action at this time.
0 commit comments