Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c9e00c5

Browse files
committed
remove api call from DS home page
1 parent 491c8bb commit c9e00c5

File tree

1 file changed

+0
-7
lines changed
  • client/packages/lowcoder/src/pages/datasource

1 file changed

+0
-7
lines changed

‎client/packages/lowcoder/src/pages/datasource/index.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,11 @@ import { getDataSource, getDataSourceTypes } from "../../redux/selectors/datasou
1616
export const DatasourceHome = () => {
1717
const dispatch = useDispatch();
1818

19-
const datasourceList = useSelector(getDataSource);
2019
const datasourceTypes = useSelector(getDataSourceTypes);
2120

2221
const currentUser = useSelector(getUser);
2322
const orgId = currentUser.currentOrgId;
2423

25-
useEffect(() => {
26-
if (isEmpty(orgId) || datasourceList.length !== 0) {
27-
return;
28-
}
29-
dispatch(fetchDatasource({ organizationId: orgId }));
30-
}, [dispatch, datasourceList.length, orgId]);
3124

3225
useEffect(() => {
3326
if (isEmpty(orgId) || datasourceTypes.length !== 0) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /