Skip to content

Commit

Permalink
handle jack without aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
x37v committed Sep 5, 2024
1 parent 459c399 commit d9da688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ export const initNodes = (jackPortsInfo: OSCQueryRNBOJackPortInfo, instanceInfo:
});

const portAliases: Array<{ portName: GraphPortRecord["portName"]; aliases: string []; }> = [];
for (const [portName, aliasInfo] of Object.entries(jackPortsInfo.CONTENTS.aliases.CONTENTS)) {
for (const [portName, aliasInfo] of Object.entries(jackPortsInfo.CONTENTS.aliases?.CONTENTS || {})) {
portAliases.push({ portName, aliases: aliasInfo.VALUE });
}

Expand Down

0 comments on commit d9da688

Please sign in to comment.