From e38e6d43018b54fbd0090b1fa0e2ba2b6299c089 Mon Sep 17 00:00:00 2001 From: Audun Skjelvan Date: Fri, 11 Oct 2024 11:41:47 +0200 Subject: [PATCH] make no items text non mandatory --- .../ComboboxExternalItems/ComboboxExternalItems.js | 7 ++++--- src/packages/arbeidsplassen-react/package.json | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/packages/arbeidsplassen-react/ComboboxExternalItems/ComboboxExternalItems.js b/src/packages/arbeidsplassen-react/ComboboxExternalItems/ComboboxExternalItems.js index aaecab6..2333138 100644 --- a/src/packages/arbeidsplassen-react/ComboboxExternalItems/ComboboxExternalItems.js +++ b/src/packages/arbeidsplassen-react/ComboboxExternalItems/ComboboxExternalItems.js @@ -15,7 +15,7 @@ function ComboboxExternalItems({ return ( - {items.length === 0 ? ( + {items.length === 0 && noItemsText && ( {noItemsText} - ) : ( + )} + {items.length > 0 && (