Explorar o código

fix customnode type

Aykut Saraç %!s(int64=3) %!d(string=hai) anos
pai
achega
d45a5a06df
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {