Fixes 404 error when loading attachments if the document is a text or URL.

This commit is contained in:
mateuswetah 2020-03-19 16:37:08 -03:00
parent 3779fe8f19
commit 51d605b1b3
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ export const fetchAttachments = ({ commit }, { page, attachmentsPerPage, itemId,
let endpoint = '/items/' + itemId + '/attachments?perpage=' + attachmentsPerPage + '&paged=' + page;
if (documentId)
if (documentId && !isNaN(documentId))
endpoint += '&exclude=' + documentId;
return new Promise((resolve, reject) => {