fix customnode type

This commit is contained in:
Aykut Saraç 2022-02-09 20:52:37 +03:00
parent 765a0f0486
commit d45a5a06df

View File

@ -57,7 +57,7 @@ const CustomNode = ({ nodeProps }) => {
port={<Port style={basePortStyle} rx={10} ry={10} />}
{...nodeProps}
>
{(nodeProps: NodeChildProps) => {
{(nodeProps: NodeProps) => {
const { width, height } = nodeProps;
if (data.text instanceof Object) {