Skip to content

Commit 1d60eac

Browse files
Uncaught error fix while dropping descendants of type folder
1 parent 1ef28b3 commit 1d60eac

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iknow-entity-browser",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Visualizer for iKnow entities",
55
"main": "gulpfile.babel.js",
66
"scripts": {

src/static/js/tabular/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ import { csv } from "./export";
22
import * as model from "../model";
33
import { onSelectionUpdate, updateSelection } from "../selection";
44

5-
var graph;
6-
75
onSelectionUpdate((selection) => {
86
if (!model.uiState.tabularToggled)
97
return;
10-
let data = selection.sort((a, b) =>
8+
let data = selection.filter(node => node.type === "entity").sort((a, b) =>
119
a.entities[0].score > b.entities[0].score ? -1 : 1
1210
),
1311
table = document.querySelector("#table table tbody");
@@ -25,8 +23,6 @@ onSelectionUpdate((selection) => {
2523

2624
export function init () {
2725

28-
graph = model.getGraphData();
29-
3026
d3.select("#tableToggle")
3127
.data([model.uiState])
3228
.on("click", function (d) {

0 commit comments

Comments
 (0)