Skip to content

Commit

Permalink
Revert "fix(website): incorrect reference displayed" (#4506)
Browse files Browse the repository at this point in the history
Reverts #4453

#4467 changes reference_id to zero-based index 😅
  • Loading branch information
Dunqing committed Jul 28, 2024
1 parent 80118cb commit b1b66e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions website/playground/symbols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ export const renderSymbols = (symbols: SymbolTable): string => {
span: symbols.spans[index],
references: symbols.resolvedReferences[index].map(id => ({
referenceId: id,
// reference id is 1-based
...symbols.references[id - 1],
...symbols.references[id],
})),
})
return acc
Expand Down

0 comments on commit b1b66e2

Please sign in to comment.