This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a commit to branch release-v0.21
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v0.21 by this push:
     new b7a1728f1 fix: unnecessary loading (#7183) (#7186)
b7a1728f1 is described below

commit b7a1728f18f1bf73a28452b6a6629d76f55858b8
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Mar 18 20:46:47 2024 +1300

    fix: unnecessary loading (#7183) (#7186)
    
    Co-authored-by: 青湛 <[email protected]>
---
 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,

Reply via email to