Skip to content

Commit

Permalink
fix: store Socket.direction to record
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Nov 10, 2023
1 parent 8ddc02b commit dcc4440
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/visual-flow/src/model/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export abstract class Socket extends ModelBase {
ctor: this.constructor.name,
id: this.id,
type: this.type,
direction: this.direction,
label: this.label,
hideLabel: this.hideLabel,
disabled: this.disabled,
Expand All @@ -101,6 +102,7 @@ export abstract class Socket extends ModelBase {
importRecord(record: SocketRecord) {
this.id = record.id;
this.type = record.type;
this.direction = record.direction;
this.label = record.label;
this.hideLabel = record.hideLabel;
this.disabled = record.disabled;
Expand Down Expand Up @@ -128,6 +130,7 @@ export interface SocketRecord {
ctor: string;
id: number;
type: string;
direction: Direction;
label: string;
hideLabel: boolean;
disabled: boolean;
Expand Down

0 comments on commit dcc4440

Please sign in to comment.