From 048bfc0a3c394c4358372f6bccb413e97aa93084 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 3 May 2023 23:32:36 +0200 Subject: [PATCH] fix: empty selector attr option --- webui/src/components/utils/Selector.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/webui/src/components/utils/Selector.svelte b/webui/src/components/utils/Selector.svelte index d8b6f0e..fb5b84e 100644 --- a/webui/src/components/utils/Selector.svelte +++ b/webui/src/components/utils/Selector.svelte @@ -83,6 +83,7 @@ .replaceAll(/[^A-Z0-9]/g, "_"); if ( !attributeOptions && + inputValue && !allAttributes.map((attr) => attr.name).includes(attributeToCreate) ) { options.push({