Skip to content

Commit

Permalink
Restore project autoselection (#230)
Browse files Browse the repository at this point in the history
This had been broken for a long time. The fix ensures that a project
is always selected, which also addresses the "rough edge" discussed in
#230 (comment).

CC @tijmenbaarda
  • Loading branch information
jgonggrijp committed Oct 9, 2024
1 parent 481deea commit 9e48842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/vre/project/project.menu.view.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ export var ProjectMenuView = AggregateView.extend({
this.model = model;
this.renderContainer();
this.trigger('select', model);
localStorage.setItem('project', model.attributes.id);
localStorage.setItem('project', model.id);
},
});

0 comments on commit 9e48842

Please sign in to comment.