Skip to content

Commit

Permalink
fix env creation
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 committed Apr 17, 2024
1 parent 4267960 commit f2f0c6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/common/stores/organisation-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ const controller = {
.post(`${Project.api}projects/`, { name, organisation: store.id })
.then((project) => {
Promise.all(
defaultEnvironmentNames.map((v) => {
defaultEnvironmentNames.map((envName) => {
data
.post(`${Project.api}environments/`, {
name: v,
project: project.id,
})
.then((res) => createSampleUser(res, 'development', project))
.then((res) => createSampleUser(res, envName, project))
})
).then((res) => {
project.environments = res
Expand Down

0 comments on commit f2f0c6d

Please sign in to comment.