Skip to content

Commit

Permalink
fix: clone environment creating token everytime (#2335)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunogois committed Nov 4, 2022
1 parent 587c022 commit cb45aec
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -177,8 +177,8 @@ export const EnvironmentCloneModal = ({
environment.name,
getCloneEnvironmentPayload()
);
const response = await createToken(getApiTokenCreatePayload());
if (apiTokenGeneration === APITokenGeneration.NOW) {
const response = await createToken(getApiTokenCreatePayload());
const token = await response.json();
newToken(token);
}
Expand Down

0 comments on commit cb45aec

Please sign in to comment.