Typo correction

pull/872/head
CamilleLegeron 3 months ago
parent e84d64d274
commit 810b4ee3be

@ -1737,8 +1737,8 @@ export class DocWorkerApi {
// Query DB for doc metadata to get the doc data.
const doc = await this._dbManager.getDoc(req);
const docTitle = doc.name;
const sufix = tableId ? (tableId === docTitle ? '' : `_${tableId}`) : '';
const filename = optStringParam(req.query.title, 'title') || (docTitle + sufix) || 'document';
const suffix = tableId ? (tableId === docTitle ? '' : `-${tableId}`) : '';
const filename = optStringParam(req.query.title, 'title') || (docTitle + suffix) || 'document';
return filename;
}

Loading…
Cancel
Save