diff --git a/src/lib/components/workspace/Models/Knowledge/Selector.svelte b/src/lib/components/workspace/Models/Knowledge/Selector.svelte index 30762bd2c..5cb22dc50 100644 --- a/src/lib/components/workspace/Models/Knowledge/Selector.svelte +++ b/src/lib/components/workspace/Models/Knowledge/Selector.svelte @@ -1,4 +1,6 @@ @@ -57,6 +75,7 @@ on:change={(e) => { if (e.detail === false) { onClose(); + query = ''; } }} > @@ -70,13 +89,39 @@ align="start" transition={flyAndScale} > -
- {#if items.length === 0} +
+
+
+ + + +
+ +
+
+ +
+ +
+ {#if filteredItems.length === 0}
{$i18n.t('No knowledge found')}
{:else} - {#each items as item} + {#each filteredItems as item} {