fix: react error
This commit is contained in:
parent
726e5ef14a
commit
550d7ff6cb
1 changed files with 3 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import { useMemo, useState } from 'react';
|
import { useMemo, useState, Fragment } from 'react';
|
||||||
|
|
||||||
import jsdocJson from '../../../../../doc.json';
|
import jsdocJson from '../../../../../doc.json';
|
||||||
import { Textbox } from '../textbox/Textbox';
|
import { Textbox } from '../textbox/Textbox';
|
||||||
|
|
@ -109,9 +109,8 @@ export function Reference() {
|
||||||
</div>
|
</div>
|
||||||
<div className="h-full gap-1.5 bg-background bg-opacity-50 rounded-md overflow-y-auto">
|
<div className="h-full gap-1.5 bg-background bg-opacity-50 rounded-md overflow-y-auto">
|
||||||
{visibleFunctions.map((entry, i) => (
|
{visibleFunctions.map((entry, i) => (
|
||||||
<>
|
<Fragment key={`entry-${entry.name}`}>
|
||||||
<a
|
<a
|
||||||
key={`entry-${entry.name}`}
|
|
||||||
className="cursor-pointer text-foreground flex-none hover:bg-lineHighlight overflow-x-hidden px-1 text-ellipsis"
|
className="cursor-pointer text-foreground flex-none hover:bg-lineHighlight overflow-x-hidden px-1 text-ellipsis"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const el = document.getElementById(`doc-${entry.name}`);
|
const el = document.getElementById(`doc-${entry.name}`);
|
||||||
|
|
@ -121,7 +120,7 @@ export function Reference() {
|
||||||
>
|
>
|
||||||
{entry.name}
|
{entry.name}
|
||||||
</a>{' '}
|
</a>{' '}
|
||||||
</>
|
</Fragment>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue