fix(website): incorrect reference displayed (#4453)

close: #4447
This commit is contained in:
Dunqing 2024-07-25 11:13:18 +08:00 committed by GitHub
parent 77bd5f102c
commit 855f2f6286
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,7 +37,8 @@ export const renderSymbols = (symbols: SymbolTable): string => {
span: symbols.spans[index],
references: symbols.resolvedReferences[index].map(id => ({
referenceId: id,
...symbols.references[id],
// reference id is 1-based
...symbols.references[id - 1],
})),
})
return acc