Skip to content

Commit

Permalink
Fixes clearing the graph (fixes #128)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacomyal committed Jan 30, 2024
1 parent 09e98af commit 9ee0146
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
3 changes: 1 addition & 2 deletions src/core/graph/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Attributes } from "graphology-types";
import { isNil, last, mapValues, omit } from "lodash";
import { Coordinates } from "sigma/types";

import { clearGraph } from "../../utils/graph";
import { appearanceAtom } from "../appearance";
import { applyVisualProperties, getAllVisualGetters } from "../appearance/utils";
import { filtersAtom } from "../filters";
Expand Down Expand Up @@ -181,7 +180,7 @@ export const sigmaGraphAtom = derivedAtom(
applyVisualProperties(newGraph, dataset, visualGetters);

if (graph) {
clearGraph(graph);
graph.clear();
graph.import(newGraph);

return graph;
Expand Down
18 changes: 0 additions & 18 deletions src/utils/graph.ts

This file was deleted.

0 comments on commit 9ee0146

Please sign in to comment.