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 2023/12/27 04:41:18 UTC
(incubator-devlake) 07/15: fix(config-ui): cannot create scope config in tapd
This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a commit to branch fix-bugs
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 92ea02790c7a984c99777cd6a044ce407dc78229
Author: mintsweet <0x...@gmail.com>
AuthorDate: Wed Dec 27 16:51:58 2023 +1300
fix(config-ui): cannot create scope config in tapd
---
config-ui/src/plugins/register/tapd/transformation.tsx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/config-ui/src/plugins/register/tapd/transformation.tsx b/config-ui/src/plugins/register/tapd/transformation.tsx
index b4782034d..747b43c51 100644
--- a/config-ui/src/plugins/register/tapd/transformation.tsx
+++ b/config-ui/src/plugins/register/tapd/transformation.tsx
@@ -55,6 +55,8 @@ export const TapdTransformation = ({ entities, connectionId, scopeId, transforma
const prefix = useProxyPrefix({ plugin: 'tapd', connectionId });
+ const { token } = theme.useToken();
+
const { ready, data } = useRefreshData<{
statusList: Array<{
id: string;
@@ -129,8 +131,6 @@ export const TapdTransformation = ({ entities, connectionId, scopeId, transforma
}, {} as Record<string, string>);
};
- const { token } = theme.useToken();
-
const panelStyle: React.CSSProperties = {
marginBottom: 24,
background: token.colorFillAlter,
@@ -205,7 +205,7 @@ const renderCollapseItems = ({
label: 'Issue Tracking',
style: panelStyle,
children: (
- <>
+ <Form labelCol={{ span: 5 }}>
<p>
Standardize your issue types to the following issue types to view metrics such as `Requirement lead time`
and `Bug age` in built-in dashboards.
@@ -325,7 +325,7 @@ const renderCollapseItems = ({
}
/>
</Form.Item>
- </>
+ </Form>
),
},
].filter((it) => entities.includes(it.key));