Skip to content

Commit 3db5819

Browse files
committed
Add more type info
1 parent b4b7f4a commit 3db5819

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

APIServer/public/js/GraphRedex.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,10 +447,7 @@ export default class GraphRedex<N extends GRND, E extends GRED> {
447447

448448
private makeNodeProxy(data: { nodes: any; edges: any }): InputData<N, E> {
449449
return {
450-
nodes: data.nodes.map((n) => {
451-
if (typeof n === "string") {
452-
throw "Cannot create proxy";
453-
}
450+
nodes: data.nodes.map((n:{_id:string, _expanded:boolean, _stuck: boolean, _limited: boolean}) => {
454451
let fullValue = null;
455452
return new Proxy(n, {
456453
get: (

0 commit comments

Comments
 (0)