This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 821c92098 fix: unnecessary loading (#7183)
821c92098 is described below
commit 821c920984e17b43649bdcf572a28c9dd0d82c28
Author: 青湛 <[email protected]>
AuthorDate: Mon Mar 18 20:36:00 2024 +1300
fix: unnecessary loading (#7183)
---
config-ui/src/plugins/components/data-scope-select/index.tsx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/config-ui/src/plugins/components/data-scope-select/index.tsx
b/config-ui/src/plugins/components/data-scope-select/index.tsx
index 2212c9b88..213b7ed25 100644
--- a/config-ui/src/plugins/components/data-scope-select/index.tsx
+++ b/config-ui/src/plugins/components/data-scope-select/index.tsx
@@ -59,7 +59,10 @@ export const DataScopeSelect = ({
}, []);
const getDataScope = async (page: number) => {
- setLoading(true);
+ if (page === 1) {
+ setLoading(true);
+ }
+
const res = await API.scope.list(plugin, connectionId, { page, pageSize });
setItems((items) => [
...items,