Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/strands/ir_builders.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export function memberAccessNode(strandsContext, parentNode, componentNode, memb
}

export function structInstanceNode(strandsContext, structTypeInfo, identifier, dependsOn) {
const { cfg, dag, } = strandsContext;
const { cfg, dag } = strandsContext;
if (dependsOn.length === 0) {
for (const prop of structTypeInfo.properties) {
const typeInfo = prop.dataType;
Expand Down Expand Up @@ -202,7 +202,7 @@ function mapPrimitiveDepsToIDs(strandsContext, typeInfo, dependsOn) {
let calculatedDimensions = 0;
let originalNodeID = null;
for (const dep of inputs.flat(Infinity)) {
if (dep instanceof StrandsNode) {
if (dep && dep.isStrandsNode) {
const node = DAG.getNodeDataFromID(dag, dep.id);
originalNodeID = dep.id;
baseType = node.baseType;
Expand Down
1 change: 1 addition & 0 deletions src/strands/strands_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export class StrandsNode {
this.id = id;
this.strandsContext = strandsContext;
this.dimension = dimension;
this.isStrandsNode = true;

// Store original identifier for varying variables
const dag = this.strandsContext.dag;
Expand Down
Loading