fix: Optional OCR-Assisted Draft Pre-Fill
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
:url="documentUrl"
|
||||
/>
|
||||
<div v-else class="flex items-center justify-center bg-gray-100 rounded-lg">
|
||||
<p class="text-gray-500">Loading document...</p>
|
||||
<p class="text-gray-500">{{ documentError ?? 'Loading document...' }}</p>
|
||||
</div>
|
||||
|
||||
<!-- Approval panel -->
|
||||
@@ -238,7 +238,7 @@ const toast = useToast()
|
||||
const batchId = computed(() => props.batchId ?? (route.params.batchId as string | undefined))
|
||||
const currentBatch = computed(() => batchStore.currentBatch)
|
||||
const draft = computed(() => batchStore.currentDraft)
|
||||
const { documentUrl } = usePresignedUrl(batchId)
|
||||
const { documentUrl, documentError } = usePresignedUrl(batchId)
|
||||
|
||||
const processing = ref(false)
|
||||
const errorMessage = ref('')
|
||||
|
||||
Reference in New Issue
Block a user