Skip to content

Commit

Permalink
Remove internal marker to avoid dynamic port connection on outer func…
Browse files Browse the repository at this point in the history
…tion port
  • Loading branch information
StefansArya committed Feb 12, 2023
1 parent 489fba7 commit 010d001
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/nodes/Fn.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,9 @@ class BPFunctionNode extends Blackprint.Node {
function BPFnInit(){
Blackprint.registerInterface('BPIC/BP/Fn/Main',
class extends Blackprint.Interface {
constructor(node){
super(node);
this._dynamicPort = true; // Port is initialized dynamically
}
// We won't internally mark this node for having dynamic port
// The port was defined after the node is imported, the outer port
// will already have a type
async _BpFnInit(){
if(this._importOnce)
throw new Error("Can't import function more than once");
Expand Down

0 comments on commit 010d001

Please # to comment.