1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: read project id in edit project (#5134)

This commit is contained in:
Mateusz Kwasniewski 2023-10-24 10:18:40 +02:00 committed by GitHub
parent c60bca777f
commit 46b8dce081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)}'`;