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 a7b15133a fix: link error (#7629)
a7b15133a is described below
commit a7b15133a9e0002d7657e3b0c08104257c2f01d2
Author: 青湛 <[email protected]>
AuthorDate: Wed Jun 19 19:45:40 2024 +1200
fix: link error (#7629)
---
config-ui/src/plugins/components/data-scope-select/index.tsx | 3 ++-
1 file changed, 2 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 213b7ed25..79bd8b082 100644
--- a/config-ui/src/plugins/components/data-scope-select/index.tsx
+++ b/config-ui/src/plugins/components/data-scope-select/index.tsx
@@ -24,6 +24,7 @@ import type { McsItem } from 'miller-columns-select';
import MillerColumnsSelect from 'miller-columns-select';
import API from '@/api';
+import { PATHS } from '@/config';
import { Loading, Block, ExternalLink, Message } from '@/components';
import { useRefreshData } from '@/hooks';
import { getPluginScopeId } from '@/plugins';
@@ -182,7 +183,7 @@ export const DataScopeSelect = ({
</Flex>
) : (
<Flex>
- <ExternalLink link={`/connections/${plugin}/${connectionId}`}>
+ <ExternalLink link={PATHS.CONNECTION(plugin, connectionId)}>
<Button type="primary" icon={<PlusOutlined />}>
Add Data Scope
</Button>