Skip to content

Commit 4e2718c

Browse files
author
vikasrohit
authored
Merge pull request #1167 from appirio-tech/feature/save-local-unchanged-project
Saving project to local storage even if there is not change
2 parents 291e5a4 + e76248f commit 4e2718c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/projects/create/containers/CreateContainer.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ class CreateConainer extends React.Component {
107107

108108
// stores the incomplete project in local storage
109109
onLeave(e) {// eslint-disable-line no-unused-vars
110-
const { wizardStep, isProjectDirty } = this.state
111-
if (wizardStep === ProjectWizard.Steps.WZ_STEP_FILL_PROJ_DETAILS && isProjectDirty) {// Project Details step
110+
const { wizardStep } = this.state
111+
if (wizardStep === ProjectWizard.Steps.WZ_STEP_FILL_PROJ_DETAILS) {// Project Details step
112112
console.log('saving incomplete project')
113113
window.localStorage.setItem(LS_INCOMPLETE_PROJECT, JSON.stringify(this.state.updatedProject))
114114
}

0 commit comments

Comments
 (0)