You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by kl...@apache.org on 2022/07/18 03:45:06 UTC
[incubator-devlake] branch main updated: fix: fix that epic clear other configs wrong (#2516)
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 6b57430e fix: fix that epic clear other configs wrong (#2516)
6b57430e is described below
commit 6b57430ec5d7eb7064565af5e0796e195c7b07f9
Author: likyh <l...@likyh.com>
AuthorDate: Mon Jul 18 11:45:02 2022 +0800
fix: fix that epic clear other configs wrong (#2516)
Co-authored-by: linyh <ya...@meri.co>
---
config-ui/src/pages/configure/settings/jira.jsx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/config-ui/src/pages/configure/settings/jira.jsx b/config-ui/src/pages/configure/settings/jira.jsx
index fd784e1b..4ac47dfb 100644
--- a/config-ui/src/pages/configure/settings/jira.jsx
+++ b/config-ui/src/pages/configure/settings/jira.jsx
@@ -422,7 +422,7 @@ export default function JiraSettings (props) {
noResults={<MenuItem disabled={true} text='No epic results.' />}
onItemSelect={(item) => {
setJiraIssueEpicKeyField(item)
- onSettingsChange({ ...transformation, epicKeyField: item?.value }, configuredBoard?.id)
+ onSettingsChange({ epicKeyField: item?.value }, configuredBoard?.id)
}}
popoverProps={{
position: Position.TOP
@@ -443,7 +443,7 @@ export default function JiraSettings (props) {
icon='eraser'
intent={jiraIssueEpicKeyField ? Intent.NONE : Intent.NONE} minimal={false} onClick={() => {
setJiraIssueEpicKeyField('')
- onSettingsChange({ ...transformation, epicKeyField: '' }, configuredBoard?.id)
+ onSettingsChange({ epicKeyField: '' }, configuredBoard?.id)
}}
/>
</ButtonGroup>
@@ -497,7 +497,7 @@ export default function JiraSettings (props) {
noResults={<MenuItem disabled={true} text='No epic results.' />}
onItemSelect={(item) => {
setJiraIssueStoryPointField(item)
- onSettingsChange({ ...transformation, storyPointField: item?.value }, configuredBoard?.id)
+ onSettingsChange({ storyPointField: item?.value }, configuredBoard?.id)
}}
popoverProps={{
position: Position.TOP
@@ -521,7 +521,7 @@ export default function JiraSettings (props) {
? Intent.NONE
: Intent.NONE} minimal={false} onClick={() => {
setJiraIssueStoryPointField('')
- onSettingsChange({ ...transformation, storyPointField: '' }, configuredBoard?.id)
+ onSettingsChange({ storyPointField: '' }, configuredBoard?.id)
}}
/>
</ButtonGroup>
@@ -553,7 +553,7 @@ export default function JiraSettings (props) {
fill={true}
placeholder='/commit/([0-9a-f]{40})$'
value={newTransformation[configuredBoard?.id]?.remotelinkCommitShaPattern}
- onChange={(e) => onSettingsChange({ ...transformation, remotelinkCommitShaPattern: e.target.value }, configuredBoard?.id)}
+ onChange={(e) => onSettingsChange({ remotelinkCommitShaPattern: e.target.value }, configuredBoard?.id)}
disabled={isSaving}
className='input'
/>