Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
change default data to be just a root nodes
  • Loading branch information
Maxwellfire committed Apr 26, 2020
commit 607ddcfec26b5d2c458b5335e1e6817c8d257338
13 changes: 13 additions & 0 deletions public/js/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,19 @@ var data =
]
};

var data =
{
"nodes": [
{
"name": "Topic Root",
"author_id": 1,
"created_at": "2017-11-02 21:02:03",
"updated_at": "2017-11-02 21:02:03",
"id": "t0"
}],
"connections": []
}

var connections = data.connections;
var IDNodeMap = d3.map(data.nodes, function (d) { return d.id; });

Expand Down