Skip to content

Commit 1ed7554

Browse files
author
vikasrohit
authored
Merge pull request #1291 from appirio-tech/feature/lost-ref-code-incomplete-project
Feature/lost ref code incomplete project
2 parents c4ded3c + c0fbfc6 commit 1ed7554

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

config/constants/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ module.exports = (() => {
22
const branch = process.env.CIRCLE_BRANCH || 'dev'
33

44
// for security reason don't let to require any arbitrary file defined in process.env
5-
if (['dev', 'master', 'qa'].indexOf(branch) < 0) {
6-
throw Error('Unsupported CIRCLE_BRANCH value.')
5+
if (['master', 'qa'].indexOf(branch) < 0) {
6+
return require('./dev')
77
}
8-
98
return require('./' + branch)
109
})()

src/projects/create/containers/CreateContainer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ class CreateConainer extends React.Component {
209209
if (wizardStep === ProjectWizard.Steps.WZ_STEP_INCOMP_PROJ_CONF) {
210210
let productUrl = productType ? ('/' + productType) : ''
211211
productUrl = !productType && projectType ? ('/' + projectType) : productUrl
212-
this.props.history.push(NEW_PROJECT_PATH + productUrl + '/incomplete')
212+
this.props.history.push(NEW_PROJECT_PATH + productUrl + '/incomplete' + window.location.search)
213213
}
214214
if (wizardStep === ProjectWizard.Steps.WZ_STEP_SELECT_PROJ_TYPE) {
215215
this.props.history.push(NEW_PROJECT_PATH + '/' + window.location.search)

0 commit comments

Comments
 (0)