Skip to content

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)