Skip to content

Commit 7c152ed

Browse files
committed
fix: type for HadronDocument
1 parent 2da175a commit 7c152ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compass-crud/src/components/document.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const Document = (props: DocumentProps) => {
3030
if (typeof _doc?.isRoot === 'function' && _doc?.isRoot()) {
3131
return _doc as HadronDocument;
3232
}
33-
return new HadronDocument(_doc as unknown);
33+
return new HadronDocument(_doc as Record<string, unknown>);
3434
}, [_doc]);
3535

3636
const changeQuery = useChangeQueryBarQuery();

0 commit comments

Comments
 (0)