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:11 UTC
(incubator-devlake) branch fix-data-scope-select created (now c13af11a3)
This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a change to branch fix-data-scope-select
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
at c13af11a3 fix: unnecessary loading
This branch includes the following new commits:
new c13af11a3 fix: unnecessary loading
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(incubator-devlake) 01/01: fix: unnecessary loading
Posted by mi...@apache.org.
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,