Skip to content

Commit

Permalink
small updates to fix description text
Browse files Browse the repository at this point in the history
  • Loading branch information
laserpilot committed Dec 30, 2023
1 parent 339a2f9 commit 6b491c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/js/color_setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export function getColor(name) {
return "gold"
case "Asset Creation":
return "deeppink"
case "Digital Fabrication":
return "springgreen"
default:
return "#ccc"
}
Expand Down
4 changes: 3 additions & 1 deletion src/js/taxonomy_tree_visualizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ const updateJsonFromLanguage = (json) => {
// Implement it for the next step
if (node.description[currentLanguage]) {
node.description = node.description[currentLanguage]
} else if (node.description["en"]) {
node.description = node.description["en"]
} else {
node.description = node.description["en"] ? node.description["en"] : "No information"
node.description = node.description ? node.description : "No description available yet. Please add one!"
}

// If there are children, recursion is performed.
Expand Down

0 comments on commit 6b491c1

Please sign in to comment.