From e99559c37b3746c620aea3f0f9b991091cfe0b39 Mon Sep 17 00:00:00 2001 From: kwasniew Date: Tue, 24 Oct 2023 10:07:28 +0200 Subject: [PATCH] fix: read project id in edit project --- .../ProjectSettings/Settings/EditProject/UpdateProject.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/project/Project/ProjectSettings/Settings/EditProject/UpdateProject.tsx b/frontend/src/component/project/Project/ProjectSettings/Settings/EditProject/UpdateProject.tsx index 58115138667f..d5a1c9138478 100644 --- a/frontend/src/component/project/Project/ProjectSettings/Settings/EditProject/UpdateProject.tsx +++ b/frontend/src/component/project/Project/ProjectSettings/Settings/EditProject/UpdateProject.tsx @@ -74,10 +74,11 @@ export const UpdateProject = ({ project }: IUpdateProject) => { const { editProject, loading } = useProjectApi(); const { refetch } = useProject(id); + const formatProjectApiCode = () => { return `curl --location --request PUT '${ uiConfig.unleashUrl - }/api/admin/projects/${project.id}' \\ + }/api/admin/projects/${id}' \\ --header 'Authorization: INSERT_API_KEY' \\ --header 'Content-Type: application/json' \\ --data-raw '${JSON.stringify(getEditProjectPayload(), undefined, 2)}'`;