linting, tenant slug -> name
This commit is contained in:
@@ -23,15 +23,11 @@ export async function resolveOcrTextUrl({
|
||||
let asset = pickAsset(docRef, getDocumentAsset);
|
||||
|
||||
if (!asset && typeof ensurePreviewData === 'function') {
|
||||
try {
|
||||
const refreshed = await ensurePreviewData(docRef.id);
|
||||
if (refreshed) {
|
||||
docRef = refreshed;
|
||||
}
|
||||
asset = pickAsset(docRef, getDocumentAsset);
|
||||
} catch (error) {
|
||||
throw error;
|
||||
const refreshed = await ensurePreviewData(docRef.id);
|
||||
if (refreshed) {
|
||||
docRef = refreshed;
|
||||
}
|
||||
asset = pickAsset(docRef, getDocumentAsset);
|
||||
}
|
||||
|
||||
if (!asset) {
|
||||
|
||||
Reference in New Issue
Block a user