Skip to content

Commit f1c562c

Browse files
add source_board support for Board.ts
1 parent 71db826 commit f1c562c

File tree

1 file changed

+8
-0
lines changed
  • lib/components/normal-components

1 file changed

+8
-0
lines changed

lib/components/normal-components/Board.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,14 @@ export class Board extends Group<typeof boardProps> {
253253
})
254254
}
255255

256+
doInitialSourceRender() {
257+
const { db } = this.root!
258+
const source_board = (db as any).source_board.insert({
259+
type: "source_board",
260+
title: this.props.title,
261+
})
262+
}
263+
256264
doInitialPcbComponentRender(): void {
257265
if (this.root?.pcbDisabled) return
258266
const { db } = this.root!

0 commit comments

Comments
 (0)