Skip to content

Commit

Permalink
Fixing bugs with datasets not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmartin committed Sep 25, 2023
1 parent 55e6a57 commit 8ca2c1a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/DatasetsListViewer/DatasetsListDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ const DatasetsListDialog = (props) => {
const dispatch = useDispatch();
const { open, handleClose } = props;
const [searchField, setSearchField] = React.useState("");
const [selectedIndex, setSelectedIndex] = React.useState(undefined);
const datasets = useSelector((state) => state.sdsState.available_datasets);
const [filteredDatasets, setFilteredDatasets] = React.useState(datasets);
const PUBLISHED = "PUBLISHED";

let turtle_url = "";
let json_url = "";
let splinter = undefined;
let selectedIndex = selectedIndex;
const handleListItemClick = (event, index) => {
setSelectedIndex(index);
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/NodeDetailView/NodeDetailView.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const NodeDetailView = (props) => {
}
};
var path = []
if (nodeSelected.tree_node !== undefined && nodeSelected.tree_node !== null) {
if (nodeSelected.tree_node.path !== undefined && nodeSelected.tree_node !== null) {
path = [...nodeSelected.tree_node.path]
path.shift();
otherDetails = path.reverse().map( singleNode => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Sidebar/TreeView/InstancesTreeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const InstancesTreeView = (props) => {
dispatch(selectInstance({
dataset_id: dataset_id,
graph_node: node?.graph_reference?.id,
tree_node: node.id,
tree_node: node?.id,
source: TREE_SOURCE
}));
if (widgets[dataset_id] !== undefined) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/Splinter.js
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ class Splinter {
var children = this.tree_parents_map.get(tree_root?.remote_id);
this.tree_parents_map?.delete(tree_root?.remote_id);
this.tree = this.generateLeaf(tree_root);
children.forEach(leaf => {
children?.forEach(leaf => {
this.build_leaf(leaf, this.tree);
});

Expand Down

0 comments on commit 8ca2c1a

Please sign in to comment.