This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a commit to branch feat-dora-config
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/feat-dora-config by this push:
new dcb558e6c fix: deployment doesn't set value
dcb558e6c is described below
commit dcb558e6c73335eee0fffc2eafa66b0be80c3b74
Author: mintsweet <[email protected]>
AuthorDate: Fri Sep 20 22:38:52 2024 +1200
fix: deployment doesn't set value
---
config-ui/src/plugins/components/deployments/index.tsx | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/config-ui/src/plugins/components/deployments/index.tsx
b/config-ui/src/plugins/components/deployments/index.tsx
index 0d297bb08..23cb306a2 100644
--- a/config-ui/src/plugins/components/deployments/index.tsx
+++ b/config-ui/src/plugins/components/deployments/index.tsx
@@ -90,7 +90,13 @@ export const Deployments = ({ style, plugin, connectionId,
transformation, setTr
{type === 'regex' ? (
<Input placeholder="(?i)prod(.*)" onChange={handleChangeRegex} />
) : (
- <Select mode="tags" style={{ width: 180 }} maxTagCount={2}
onChange={handleChangeSelect}>
+ <Select
+ mode="tags"
+ style={{ width: 180 }}
+ maxTagCount={2}
+ value={transformation.envNameList}
+ onChange={handleChangeSelect}
+ >
{data.map((d) => (
<Select.Option key={d} value={d}>
{d}