Skip to content

Commit

Permalink
fix: Only adds trails a single time
Browse files Browse the repository at this point in the history
  • Loading branch information
HEmile committed Jan 15, 2022
1 parent 57130d1 commit 4aeb3df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Codeblocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ class BCStore extends Component implements ICoreDataStore {
allNodes.map((node) => this.asString(node)).filter((s) => s)
);
newNodes.forEach((node) => {
console.log({ node });
this.graph.forEachOutEdge(
this.asString(node),
(key, attr, source, target) => {
Expand Down Expand Up @@ -378,7 +377,7 @@ function createJuggl(
console.log({ args }, { initialNodes });
const juggl = jugglPlugin.createJuggl(target, args, stores, initialNodes);
plugin.addChild(juggl);
juggl.load();
// juggl.load();
console.log({ juggl });
} catch (error) {
console.log({ error });
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default class BCPlugin extends Plugin {

registerLayoutChangeEvent() {
this.layoutChange = this.app.workspace.on("layout-change", async () => {
if (this.settings.showBCs) await drawTrail(this);
// if (this.settings.showBCs) await drawTrail(this);
});
this.registerEvent(this.layoutChange);
}
Expand Down

0 comments on commit 4aeb3df

Please sign in to comment.