We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc5d65d commit ff86e72Copy full SHA for ff86e72
1 file changed
src/extension/useExportControlToExtension.ts
@@ -71,7 +71,8 @@ export function useExportControlToExtension({
71
}, {} as Record<string, { type?: string; message?: string }>);
72
73
const nativeFields = flatFieldNames.reduce((prev, name) => {
74
- prev[name] = !!get(control._fields, name)?._f?.ref?.type;
+ const field = get(control._fields, name)?._f;
75
+ prev[name] = get(field, 'ref')?.type;
76
return prev;
77
}, {} as Record<string, boolean>);
78
0 commit comments