Reference picker: fix show existing key as unexistent in Insert mode

This commit is contained in:
yu-i-i
2026-07-23 17:42:51 +02:00
parent 2e275a7489
commit cf70bc751e
@@ -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 = []
}