From 6ee224ffbce317115cdeccdcf3711f2c7bd3ecd9 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Wed, 1 Dec 2021 17:23:20 +0200 Subject: [PATCH] fix --- client/src/views/fields/attachment-multiple.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/views/fields/attachment-multiple.js b/client/src/views/fields/attachment-multiple.js index 648fe7dd62..5899134370 100644 --- a/client/src/views/fields/attachment-multiple.js +++ b/client/src/views/fields/attachment-multiple.js @@ -688,6 +688,10 @@ define('views/fields/attachment-multiple', 'views/fields/base', function (Dep) { containerClassName += ' attachment-block-container-small'; } + if (names.length === 0) { + return ''; + } + var string = '
' + previews.join('') + '
' + names.join('');