fix: make sure to not double load nodes
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 1m51s

This commit is contained in:
max_richter 2024-05-01 23:26:34 +02:00
parent d9afec5bf6
commit 431d26783d

View File

@ -49,7 +49,7 @@ export class RemoteNodeRegistry implements NodeRegistry {
async load(nodeIds: `${string}/${string}/${string}`[]) {
const a = performance.now();
const nodes = await Promise.all(nodeIds.map(async id => {
const nodes = await Promise.all([...new Set(nodeIds).values()].map(async id => {
if (this.nodes.has(id)) {
return this.nodes.get(id)!;