Merge pull request #18585 from silentoplayz/fix-ui-freeze-on-mixed-sources

fix: prevent UI freeze by initializing distances array
This commit is contained in:
Tim Baek 2025-10-24 17:47:34 -07:00 committed by GitHub
commit 1f287be27f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,7 +108,7 @@
source: _source,
document: [document],
metadata: metadata ? [metadata] : [],
distances: distance !== undefined ? [distance] : undefined
distances: distance !== undefined ? [distance] : []
});
}
});