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

This commit is contained in:
yu-i-i
2026-07-23 17:38:45 +02:00
parent c7579e3e74
commit 38250cd239
@@ -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 = []
}