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 05:19:12 UTC

(incubator-devlake) 01/01: fix: unnecessary loading

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

mintsweet pushed a commit to branch fix-data-scope-select
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit c13af11a30e67a536583e89b28f161e50f5971a1
Author: mintsweet <0x...@gmail.com>
AuthorDate: Mon Mar 18 18:18:54 2024 +1300

    fix: unnecessary loading
---
 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,