Skip to content

Commit

Permalink
JS code handles 'tag' node in jsTree
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Dec 10, 2024
1 parent 5d441c2 commit 0d7b3ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/dataLoader/DataContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ class DataContainer extends React.Component {
)
}
if (effectiveRootNode.type === "project"
|| effectiveRootNode.type === "dataset") {
|| effectiveRootNode.type === "dataset" || effectiveRootNode.type === "tag") {
return (
<DatasetContainer
jstree={jstree}
Expand Down
4 changes: 4 additions & 0 deletions src/dataView/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ class Layout extends React.Component {
plateId = this.props.parentId;
}
url += '?plate=' + plateId;
} else if (this.props.parentType == "tag") {
url += '?tag=' + this.props.parentId;
} else {
console.log("parentType not handled for dataproviders", this.props.parentType, this.props)
}
$.ajax({
url: url,
Expand Down

0 comments on commit 0d7b3ca

Please sign in to comment.