@tscircuit/core 0.0.501 → 0.0.502

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +7 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7560,11 +7560,13 @@ var Group = class extends NormalComponent {
7560
7560
  name: this._parsedProps.name,
7561
7561
  is_subcircuit: this.isSubcircuit
7562
7562
  });
7563
- this.subcircuit_id = `subcircuit_${source_group.source_group_id}`;
7564
7563
  this.source_group_id = source_group.source_group_id;
7565
- db.source_group.update(source_group.source_group_id, {
7566
- subcircuit_id: this.subcircuit_id
7567
- });
7564
+ if (this.isSubcircuit) {
7565
+ this.subcircuit_id = `subcircuit_${source_group.source_group_id}`;
7566
+ db.source_group.update(source_group.source_group_id, {
7567
+ subcircuit_id: this.subcircuit_id
7568
+ });
7569
+ }
7568
7570
  }
7569
7571
  doInitialSourceRender() {
7570
7572
  const { db } = this.root;
@@ -10388,7 +10390,7 @@ import { identity as identity4 } from "transformation-matrix";
10388
10390
  var package_default = {
10389
10391
  name: "@tscircuit/core",
10390
10392
  type: "module",
10391
- version: "0.0.500",
10393
+ version: "0.0.501",
10392
10394
  types: "dist/index.d.ts",
10393
10395
  main: "dist/index.js",
10394
10396
  module: "dist/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.501",
4
+ "version": "0.0.502",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",