Skip to content

Commit

Permalink
fix: read project id in edit project (#5134)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Oct 24, 2023
1 parent c60bca7 commit 46b8dce
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -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)}'`;
Expand Down

0 comments on commit 46b8dce

Please sign in to comment.