typescript
This commit is contained in:
@@ -190,7 +190,7 @@ const DocumentViewerPanel: React.FC<DocumentViewerPanelProps> = ({
|
||||
],
|
||||
);
|
||||
|
||||
const loadOcrContent = useCallback(async ({ signal } = {}) => {
|
||||
const loadOcrContent = useCallback(async ({ signal }: { signal?: AbortSignal } = {}) => {
|
||||
if (!document || !hasOcr || typeof getDocumentAsset !== 'function') {
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user