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
commit 1eae83c0f0a35cdbc57780f1fb0e14a9771e10ea Author: mintsweet <0x1304...@gmail.com> 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}