ソースを参照

fix customnode type

Aykut Saraç 3 年 前
コミット
d45a5a06df
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/containers/LiveEditor/CustomNode.tsx

+ 1 - 1
src/containers/LiveEditor/CustomNode.tsx

@@ -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) {