@dataloop-ai/components 0.19.76 → 0.19.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -386,12 +386,6 @@ export default defineComponent({
|
|
|
386
386
|
let lastSearchQuery: string
|
|
387
387
|
|
|
388
388
|
const updateJSONQuery = () => {
|
|
389
|
-
if (lastSearchQuery === searchQuery.value) {
|
|
390
|
-
return null
|
|
391
|
-
} else {
|
|
392
|
-
lastSearchQuery = searchQuery.value
|
|
393
|
-
}
|
|
394
|
-
|
|
395
389
|
try {
|
|
396
390
|
const bracketless = removeBrackets(searchQuery.value)
|
|
397
391
|
const cleanedAliases = revertAliases(bracketless, aliases.value)
|
|
@@ -610,10 +604,13 @@ export default defineComponent({
|
|
|
610
604
|
return
|
|
611
605
|
}
|
|
612
606
|
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
607
|
+
if (lastSearchQuery !== searchQuery.value) {
|
|
608
|
+
lastSearchQuery = searchQuery.value
|
|
609
|
+
const toSearch = updateJSONQuery()
|
|
610
|
+
if (toSearch) {
|
|
611
|
+
emit('search', toSearch)
|
|
612
|
+
showSuggestions.value = false
|
|
613
|
+
}
|
|
617
614
|
}
|
|
618
615
|
}
|
|
619
616
|
|