소스 검색

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