Skip to content

Commit ff86e72

Browse files
committed
fix type
1 parent fc5d65d commit ff86e72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/extension/useExportControlToExtension.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ export function useExportControlToExtension({
7171
}, {} as Record<string, { type?: string; message?: string }>);
7272

7373
const nativeFields = flatFieldNames.reduce((prev, name) => {
74-
prev[name] = !!get(control._fields, name)?._f?.ref?.type;
74+
const field = get(control._fields, name)?._f;
75+
prev[name] = get(field, 'ref')?.type;
7576
return prev;
7677
}, {} as Record<string, boolean>);
7778

0 commit comments

Comments
 (0)