@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quazardous/qdadm",
3
- "version": "1.19.5",
3
+ "version": "1.19.6",
4
4
  "description": "Vue 3 framework for admin dashboards with PrimeVue",
5
5
  "author": "quazardous",
6
6
  "license": "MIT",
@@ -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
- result = (filtered.length === 1 && filtered[0].toLowerCase() === q)
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 (let i = 0; i < toRemove; i++) {
167
- items.delete(entries[i][0])
166
+ for (const [key] of entries.slice(0, toRemove)) {
167
+ items.delete(key)
168
168
  }
169
169
  }
170
170