Skip to content

Commit

Permalink
fix: read project id in edit project
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Oct 24, 2023
1 parent ab390db commit e99559c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
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 e99559c

Please sign in to comment.