Compare commits

...
Author SHA1 Message Date
yu-i-i 38250cd239 Reference picker: fix show existing key as unexistent in Insert mode 2026-07-23 17:38:45 +02:00
@@ -109,9 +109,10 @@ export default function ReferencePickerModal({
setResults(r.hits)
const known = new Set(r.hits.map(h => h._source.EntryKey))
setKnownKeys(known)
if (pendingInitialKeysRef.current.length > 0) {
const known = new Set(r.hits.map(h => h._source.EntryKey))
setKnownKeys(known)
setSelectedKeys([...pendingInitialKeysRef.current])
pendingInitialKeysRef.current = []
}