@quazardous/qdadm 1.19.5 → 1.19.6
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
|
@@ -291,7 +291,8 @@ export function useOptionsLookup(config: UseOptionsLookupConfig): UseOptionsLook
|
|
|
291
291
|
)
|
|
292
292
|
// When query exactly matches a single option (e.g. dropdown click with
|
|
293
293
|
// current value), show all options so the user can browse alternatives
|
|
294
|
-
|
|
294
|
+
const sole = filtered.length === 1 ? filtered[0] : undefined
|
|
295
|
+
result = (sole !== undefined && sole.toLowerCase() === q)
|
|
295
296
|
? encodedStrings
|
|
296
297
|
: filtered
|
|
297
298
|
}
|
|
@@ -163,8 +163,8 @@ export function applyCacheMethods(EntityManagerClass: { prototype: any }): void
|
|
|
163
163
|
// Evict oldest entries by loadedAt
|
|
164
164
|
const entries = [...items.entries()].sort((a, b) => a[1].loadedAt - b[1].loadedAt)
|
|
165
165
|
const toRemove = entries.length - maxSize
|
|
166
|
-
for (
|
|
167
|
-
items.delete(
|
|
166
|
+
for (const [key] of entries.slice(0, toRemove)) {
|
|
167
|
+
items.delete(key)
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
|