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:
parent
c60bca777f
commit
46b8dce081
@ -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)}'`;
|
||||
|
Loading…
Reference in New Issue
Block a user