You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by mi...@apache.org on 2024/03/18 07:47:00 UTC

(incubator-devlake) branch release-v1.0 updated: fix: unnecessary loading (#7183) (#7187)

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

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


The following commit(s) were added to refs/heads/release-v1.0 by this push:
     new d510f597c fix: unnecessary loading (#7183) (#7187)
d510f597c is described below

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

    fix: unnecessary loading (#7183) (#7187)
    
    Co-authored-by: 青湛 <0x...@gmail.com>
---
 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,