diff --git a/src/components/TreeReactFlow/index.tsx b/src/components/TreeReactFlow/index.tsx index b861e017..e2921e7c 100644 --- a/src/components/TreeReactFlow/index.tsx +++ b/src/components/TreeReactFlow/index.tsx @@ -1253,7 +1253,7 @@ export const ReactFlowSafe = < // the tree in order to perform actions on them. elementsSelectable: false, onNodeClick: (e, n) => { - "onNodeClick" in p && + p.onNodeClick && p.onNodeClick( e, // This cast is safe because `N` is also the type of elements of the `nodes` field. diff --git a/tsconfig.base.json b/tsconfig.base.json index 5057c3e2..89286996 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -22,7 +22,6 @@ "allowUnreachableCode": false, "allowUnusedLabels": false, "alwaysStrict": true, - "exactOptionalPropertyTypes": true, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitOverride": true,