From 60854bb789fd30b5a016ee81c14732b8a5aae8f9 Mon Sep 17 00:00:00 2001 From: Simon Schrott Date: Fri, 8 Nov 2024 22:52:10 +0100 Subject: [PATCH] fix select all on more then 49 items in search result row --- src/components/cardbuilder/cardBuilder.js | 7 +------ src/components/multiSelect/multiSelect.js | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/cardbuilder/cardBuilder.js b/src/components/cardbuilder/cardBuilder.js index b4b8c77ddcf..bdcc0f8aeaf 100644 --- a/src/components/cardbuilder/cardBuilder.js +++ b/src/components/cardbuilder/cardBuilder.js @@ -1224,12 +1224,7 @@ export function buildCards(items, options) { if (html) { if (options.itemsContainer.cardBuilderHtml !== html) { options.itemsContainer.innerHTML = html; - - if (items.length < 50) { - options.itemsContainer.cardBuilderHtml = html; - } else { - options.itemsContainer.cardBuilderHtml = null; - } + options.itemsContainer.cardBuilderHtml = html; } imageLoader.lazyChildren(options.itemsContainer); diff --git a/src/components/multiSelect/multiSelect.js b/src/components/multiSelect/multiSelect.js index fd6768489bb..efcb172650f 100644 --- a/src/components/multiSelect/multiSelect.js +++ b/src/components/multiSelect/multiSelect.js @@ -222,7 +222,7 @@ function showMenuForSelectedItems(e) { icon: 'check_box_outline_blank' }); - // this assues that if the user can refresh metadata for the first item + // this assures that if the user can refresh metadata for the first item // they can refresh metadata for all items if (itemHelper.canRefreshMetadata(firstItem, user)) { menuItems.push({