From 7ea5326db56e48c93c23a28662130facf14cbf15 Mon Sep 17 00:00:00 2001 From: poonam yadav Date: Fri, 4 Aug 2023 14:13:57 +0530 Subject: [PATCH] WEBUI-1237: multiple files not working for custom code --- .../nuxeo-document-attachments/nuxeo-document-attachments.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/elements/nuxeo-document-attachments/nuxeo-document-attachments.js b/elements/nuxeo-document-attachments/nuxeo-document-attachments.js index 8bedfd2bf0..1695f54735 100644 --- a/elements/nuxeo-document-attachments/nuxeo-document-attachments.js +++ b/elements/nuxeo-document-attachments/nuxeo-document-attachments.js @@ -166,7 +166,6 @@ Polymer({ }, _getFileValue() { - const fileName = this.document.type === 'File' && this.xpath === 'files:files' ? 'file' : ''; - return fileName; + return this.xpath === 'files:files' ? 'file' : ''; }, });