PortWidget port null
Closed this issue · 0 comments
quangas commented
Any ideas how to resolve this issue?
Type 'PortModel<PortModelGenerics> | null' is not assignable to type 'PortModel<PortModelGenerics>'.
Type 'null' is not assignable to type 'PortModel<PortModelGenerics>'. TS2322
For
<PortWidget port={this.props.nodeModel.getPort(PortModelAlignment.TOP)} ... />