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 2024/04/28 12:47:23 UTC
(incubator-devlake) branch fix-project-name created (now 9990cd165)
This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a change to branch fix-project-name
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
at 9990cd165 fix: unnecessary encode name for project
This branch includes the following new commits:
new 9990cd165 fix: unnecessary encode name for project
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(incubator-devlake) 01/01: fix: unnecessary encode name for project
Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a commit to branch fix-project-name
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 9990cd16557f1aa72875e828c0fe9220c305de98
Author: mintsweet <0x...@gmail.com>
AuthorDate: Sun Apr 28 20:47:09 2024 +0800
fix: unnecessary encode name for project
---
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 099f7ad4d..52e3d2351 100644
--- a/config-ui/src/api/project/index.ts
+++ b/config-ui/src/api/project/index.ts
@@ -30,10 +30,7 @@ export const checkName = (name: string) => request(`/projects/${encodeName(name)
export const create = (data: Pick<IProject, 'name' | 'description' | 'metrics'>) =>
request('/projects', {
method: 'post',
- data: {
- ...data,
- name: encodeName(data.name),
- },
+ data,
});
export const remove = (name: string) =>