From c48255d9318b8bbe3aafe4a1d0bc0aeeb86bbaad Mon Sep 17 00:00:00 2001 From: Amila Welihinda Date: Fri, 27 Oct 2017 18:01:47 -0700 Subject: [PATCH] Fix react prop class param type --- packages/babel-plugin-flow-runtime/src/transformVisitors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-plugin-flow-runtime/src/transformVisitors.js b/packages/babel-plugin-flow-runtime/src/transformVisitors.js index 78d954a..dc47ace 100644 --- a/packages/babel-plugin-flow-runtime/src/transformVisitors.js +++ b/packages/babel-plugin-flow-runtime/src/transformVisitors.js @@ -648,7 +648,7 @@ export default function transformVisitors (context: ConversionContext): Object { const hasSuperTypeParameters = superTypeParameters.length > 0; if (path.has('superClass') && isReactComponentClass(path.get('superClass'))) { const annotation = hasSuperTypeParameters - ? superTypeParameters[1] + ? superTypeParameters[0] : getClassPropertyAnnotation(path, 'props') ;