Skip to content

Commit

Permalink
Session
Browse files Browse the repository at this point in the history
  • Loading branch information
aolopezeafit committed Apr 18, 2024
1 parent 94b53e2 commit 08f29b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -559,10 +559,10 @@ export default class ProjectUseCases {

deleteProject() {
// Remove saved data from sessionStorage
//sessionStorage.removeItem("Project");
sessionStorage.removeItem("Project");

// Remove all saved data from sessionStorage
//sessionStorage.clear();
sessionStorage.clear();
}

static generateId(): string {
Expand Down
4 changes: 3 additions & 1 deletion src/UI/WorkSpace/DashBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ class DashBoard extends Component<Props, State> {

componentDidMount() {
let project=this.projectService.createProject("My project");
this.projectService.createLPS(project, "My product line", "System", "Retail");
if (project.productLines.length==0) {
this.projectService.createLPS(project, "My product line", "System", "Retail");
}
this.projectService.updateProject(project, null);
}

Expand Down

0 comments on commit 08f29b3

Please sign in to comment.