Skip to content

Commit

Permalink
log undefined levelMeta
Browse files Browse the repository at this point in the history
manage-explorer.js : blockFeatureOntologiesTreeEmbedded() : check this.levelMeta : undefined .levelMeta has been seen, when switching straight to /groups route as /mapview is still being computed and rendered, causing an exception in : blockFeatureOntologiesTreeEmbedded() -> mapTree() -> copyNode()
  • Loading branch information
Don-Isdale committed Apr 9, 2024
1 parent 860b486 commit 23422c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/app/components/panel/manage-explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,11 @@ export default ManageBase.extend({
treeP = this.get('treesForData'), // single-root : ontologyTree
id2PnP = this.get('ontologyId2DatasetNodes'),
promise = Promise.all([treeP, id2PnP]).then(([tree, id2Pn]) => {
/** undefined .levelMeta has been seen, when switching straight to /groups
* route as /mapview is still being computed and rendered */
if (! this.levelMeta) {
console.warn(fnName, 'levelMeta', this);
}
let valueTree = blockFeatureOntologiesTreeEmbeddedFn(this.levelMeta, tree, id2Pn);
/** valueTree is the root, e.g. "CO_321:ROOT" : "Wheat traits", so count the children. */
let keyLength = treesChildrenCount(valueTree);
Expand Down

0 comments on commit 23422c3

Please sign in to comment.