Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dglazkov committed Dec 10, 2024
1 parent bb49750 commit 11d03b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ export class ComponentSelector extends LitElement {
if (!this.graphStore || !this.mainGraphId) {
return nothing;
}
console.log("🌻 graphs", this.graphStore.graphs());
const allKits = this.#createKitList(this.graphStore, this.mainGraphId);

const before = allKits.size;
Expand Down
5 changes: 4 additions & 1 deletion packages/visual-editor/src/runtime/board.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,11 @@ export class Board extends EventTarget {
// requesting the graph file from it.
await boardServer.ready();
}

if (boardServer && this.boardServers) {
boardServer.kits.forEach((kit) => {
this.getGraphStore().registerKit(kit, []);
});

kits = (boardServer as BoardServer).kits ?? this.boardServerKits;
const loadResult = await this.boardServers.loader.load(url, { base });
graph = loadResult.success ? loadResult.graph : null;
Expand Down

0 comments on commit 11d03b5

Please sign in to comment.