Skip to content

Commit

Permalink
fix: tests in tree setups
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Sep 17, 2023
1 parent 7bc820c commit 8cfd852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/GraphController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export class GraphController extends ScatterController {
this.getDataset = () => {
return new Proxy(dataset, {
get(obj: any, prop: string) {
return prop === 'data' ? obj.edges : obj[prop];
return prop === 'data' ? obj.edges ?? [] : obj[prop];
},
});
};
Expand Down

0 comments on commit 8cfd852

Please sign in to comment.