This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a commit to branch release-v1.0
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/release-v1.0 by this push:
new e929ac8e9 fix: error encode operate when updating project name (#8073)
e929ac8e9 is described below
commit e929ac8e97949d9b1a0f03d175553cccbe3083c7
Author: 青湛 <[email protected]>
AuthorDate: Thu Sep 19 20:52:33 2024 +1200
fix: error encode operate when updating project name (#8073)
---
config-ui/src/api/project/index.ts | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/config-ui/src/api/project/index.ts
b/config-ui/src/api/project/index.ts
index 52e3d2351..eff3ca5f8 100644
--- a/config-ui/src/api/project/index.ts
+++ b/config-ui/src/api/project/index.ts
@@ -41,8 +41,5 @@ export const remove = (name: string) =>
export const update = (name: string, data: Pick<IProject, 'name' |
'description' | 'metrics'>) =>
request(`/projects/${encodeName(name)}`, {
method: 'patch',
- data: {
- ...data,
- name: encodeName(data.name),
- },
+ data,
});