Skip to content

Commit 8cfd852

Browse files
committed
fix: tests in tree setups
1 parent 7bc820c commit 8cfd852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/GraphController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export class GraphController extends ScatterController {
234234
this.getDataset = () => {
235235
return new Proxy(dataset, {
236236
get(obj: any, prop: string) {
237-
return prop === 'data' ? obj.edges : obj[prop];
237+
return prop === 'data' ? obj.edges ?? [] : obj[prop];
238238
},
239239
});
240240
};

0 commit comments

Comments
 (0)