Skip to content

Commit

Permalink
Fixing bug with goal display for passive agency tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
rartiss55 committed Sep 13, 2023
1 parent 91f1570 commit e52dd0b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions webenabled/templates/mcs_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -473,16 +473,15 @@ <h1>Machine Common Sense</h1>
}

if("description" in data.goal) {
if(hasNoDesc) {
document.getElementById("goal-desc").style.display = "none"
} else {
document.getElementById("goal-desc").style.display = "inline"
document.getElementById("goal-desc").style.display = "inline"

let goalDesc = document.getElementById('goal-desc');
goalDesc.innerHTML = data.goal.description;
}
let goalDesc = document.getElementById('goal-desc');
goalDesc.innerHTML = data.goal.description;
} else {
console.warn("description not in goalInfo");
if(hasNoDesc) {
document.getElementById("goal-desc").style.display = "none"
}
}

if("last_step" in data.goal) {
Expand Down

0 comments on commit e52dd0b

Please sign in to comment.