Skip to content

Commit

Permalink
fix: enumerate sockets with prop id as key
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Nov 10, 2023
1 parent 989201e commit fc6c41c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/visual-flow/src/view/block.r.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentContext, OutputComponent, byIndex } from "refina";
import { ComponentContext, OutputComponent, byIndex, byProp } from "refina";
import { Block } from "../model";
import Vf from "../plugin";
import styles from "./block.styles";
Expand All @@ -25,7 +25,7 @@ export class VfBlock extends OutputComponent {
d: model.backgroudPath,
});

_.for(model.allSockets, byIndex, socket => {
_.for(model.allSockets, byProp("id"), socket => {
_.vfSocket(socket);
});
},
Expand Down

0 comments on commit fc6c41c

Please sign in to comment.