Skip to content

Commit

Permalink
fix: plan view is ko in language different from EN & FR - EXO-72317 - M…
Browse files Browse the repository at this point in the history
…eeds-io/meeds#2140.

Before this change, when set plf langue to langue except english or french then open tasks project and create tasks with start and end date then open plan view, nothing displayed in plan view and error in browser console. After this change, plan view is available as it is the case for French & English.

(cherry picked from commit a40a78b)
  • Loading branch information
akhanfir authored and Jihed525 committed Sep 27, 2024
1 parent ad61a9d commit 759d121
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,8 @@ export default {
document.addEventListener('loadProjectName', event => {
if (event && event.detail) {
const task = event.detail;
if (task.id!=null && task.status && task.status.project) {
if (task.status && task.status.project) {
this.projectModel = this.task.status.project;
this.projectLabel = this.$t('label.tapProject.name');
} else if (task.id==null && task.status && task.status.project){
this.projectModel = this.task.status.project;
this.projectLabel = this.$t('label.tapProject.name');
} else {
this.projectModel = null;
this.projectLabel = this.$t('label.noProject');
Expand Down

0 comments on commit 759d121

Please sign in to comment.